ffi: new native function format

This commit is contained in:
2023-09-22 00:26:24 -07:00
parent f60715dfb3
commit 83c24843a3
14 changed files with 75 additions and 57 deletions

View File

@ -1,8 +1,8 @@
export func malloc(size)
native ffi "c:malloc:void*:size_t"
native ffi "c" "void* malloc(size_t)"
export func calloc(size, count)
native ffi "c:calloc:void*:size_t,size_t"
native ffi "c" "void* calloc(size_t, size_t)"
export func free(pointer)
native ffi "c:free:void:void*"
native ffi "c" "void free(void*)"