Skip to content

Instantly share code, notes, and snippets.

@fengb
Created November 12, 2019 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fengb/39a6a97357e5797576e67ea6a13665ee to your computer and use it in GitHub Desktop.
Save fengb/39a6a97357e5797576e67ea6a13665ee to your computer and use it in GitHub Desktop.
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