Skip to content

Commit

Permalink
simplify AS header
Browse files Browse the repository at this point in the history
  • Loading branch information
konsumer committed Oct 12, 2024
1 parent 8118a7d commit ef96a5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cart/as/null0.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
// this code will be injected at the top of your cart-code

// expose memory-management
// this might not be strictly needed, since host passes return pointers as param
// but I include it for use in this header, so I can wrap pointers here

export function malloc(size: usize, id: u32 = 0): usize {
const pout = __new(size, id)
__pin(pout)
return pout
}

export function free(pointer:usize): void {
__unpin(pointer)
}


// classes

class Color {
Expand Down
Binary file modified docs/cart/example-as.null0
Binary file not shown.

0 comments on commit ef96a5e

Please sign in to comment.