Skip to content

Commit

Permalink
abi: use TinyGo magic comment for go:export
Browse files Browse the repository at this point in the history
  • Loading branch information
ydnar committed Oct 17, 2023
1 parent 7a9e914 commit f964c78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions abi/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func offset(ptr, align uintptr) uintptr {
//
// Note: the use of uintptr assumes 32-bit pointers, e.g. GOOS=wasm32 when compiled for WebAssembly.
//
//go:export cabi_realloc
//go:wasmexport cabi_realloc
func Realloc(ptr unsafe.Pointer, size, align, newsize uintptr) unsafe.Pointer {
p := uintptr(ptr)
Expand Down

0 comments on commit f964c78

Please sign in to comment.