mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Some refactoring of ranges. env::AUTHORS and env::AUTHOR_EMAILS
This commit is contained in:
@@ -3,6 +3,8 @@ import std;
|
||||
import bar;
|
||||
import clib;
|
||||
import clib2;
|
||||
import std::core::env;
|
||||
|
||||
|
||||
fn int test_doubler(int x) @if(env::WIN32) => x * x;
|
||||
extern fn int test_doubler(int) @if(!env::WIN32);
|
||||
@@ -11,6 +13,11 @@ extern fn void printf(char *, ...);
|
||||
fn int main()
|
||||
{
|
||||
printf("Hello World!\n");
|
||||
printf("Authors:");
|
||||
io::printn(env::AUTHORS);
|
||||
printf("Author emails:");
|
||||
io::printn(env::AUTHOR_EMAILS);
|
||||
|
||||
bar::test();
|
||||
printf("Hello double: %d\n", test_doubler(11));
|
||||
if ($feature(ABCD)) io::printn("ABCD");
|
||||
|
||||
Reference in New Issue
Block a user