mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gc: enable on macos and add leak detection fns
This commit is contained in:
@ -9,10 +9,16 @@ $if windows {
|
||||
|
||||
#include <gc.h>
|
||||
|
||||
#flag -lgc
|
||||
#flag linux -lgc
|
||||
#flag darwin @VROOT/thirdparty/bdwgc/extra/.libs/gc.o
|
||||
|
||||
fn C.GC_MALLOC(n size_t) voidptr
|
||||
|
||||
fn C.GC_REALLOC(ptr voidptr, n size_t) voidptr
|
||||
|
||||
fn C.GC_FREE(ptr voidptr)
|
||||
|
||||
fn C.GC_set_find_leak(int)
|
||||
|
||||
// fn C.CHECK_LEAKS()
|
||||
fn C.GC_gcollect()
|
||||
|
Reference in New Issue
Block a user