Skip to content

Instantly share code, notes, and snippets.

@LemonBoy

LemonBoy/foo.zig Secret

Created September 22, 2019 18:04
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 LemonBoy/e0b40b3c906ad581b8d3193dcc680bc9 to your computer and use it in GitHub Desktop.
Save LemonBoy/e0b40b3c906ad581b8d3193dcc680bc9 to your computer and use it in GitHub Desktop.
threadlocal var x: i32 = 1;
extern fn _tlv_bootstrap() void {
unreachable;
}
comptime {
@export("_tlv_bootstrap", _tlv_bootstrap, .Strong);
}
test "" {
x += 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment