Complete transition to fn. Introduce global/threadlocal

This commit is contained in:
Christoffer Lerno
2021-11-16 17:19:12 +01:00
committed by Christoffer Lerno
parent e2621617f1
commit b52b42d4da
331 changed files with 1279 additions and 1261 deletions

View File

@@ -1,16 +1,16 @@
// #target: x64-darwin
module demo;
define Callback = func int(char* text, int value);
define Callback = fn int(char* text, int value);
func int my_callback(char* text, int value)
fn int my_callback(char* text, int value)
{
return 0;
}
Callback cb = &my_callback;
func void main()
fn void main()
{
int result = cb("demo", 123);
// ..