-
-
Save fengb/39a6a97357e5797576e67ea6a13665ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn exportC(comptime conf: struct { | |
//allocator: *std.mem.Allocator, | |
malloc: bool = true, | |
free: bool = true, | |
calloc: bool = false, | |
realloc: bool = false, | |
}) void {} | |
comptime { | |
exportC(.{ | |
//.allocator = zee_alloc.ZeeAllocDefaults.wasm_allocator, | |
.malloc = true, | |
.free = true, | |
.realloc = true, | |
.calloc = true, | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment