mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Feature flags possible to add in project.json. See #991
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -14,6 +14,8 @@
|
||||
// libraries to use
|
||||
"dependencies": [],
|
||||
|
||||
"features": ["ABCD"],
|
||||
|
||||
// c compiler
|
||||
"cc": "cc",
|
||||
// c sources
|
||||
|
||||
Reference in New Issue
Block a user