mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
builtin: add builtin/wasm_bare (#13078)
This commit is contained in:
parent
c9d8fecc75
commit
287331bc19
5 changed files with 301 additions and 21 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue