Feature flags possible to add in project.json. See #991

This commit is contained in:
Christoffer Lerno
2023-09-15 14:28:23 +02:00
parent d6e9985a26
commit 9233305bd6
4 changed files with 19 additions and 1 deletions

View File

@@ -11,5 +11,7 @@ fn int main()
printf("Hello World!\n");
bar::test();
printf("Hello double: %d\n", test_doubler(11));
if ($feature(ABCD)) io::printn("ABCD");
return 0;
}

View File

@@ -14,6 +14,8 @@
// libraries to use
"dependencies": [],
"features": ["ABCD"],
// c compiler
"cc": "cc",
// c sources