builtin: add builtin/wasm_bare (#13078)

This commit is contained in:
playX 2022-01-07 14:16:06 +03:00 committed by GitHub
parent c9d8fecc75
commit 287331bc19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 301 additions and 21 deletions

View file

@ -111,12 +111,6 @@ fn memcmp(a &C.void, b &C.void, n usize) int {
[export: 'free']
[unsafe]
fn __free(ptr &C.void) {
/*
err := mm_free(ptr)
if err != .enoerror {
eprintln('free error:')
panic(err)
}*/
unsafe {
global_allocator.free_(ptr)
}