mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
committed by
GitHub
parent
82c3facb65
commit
4c1edfb941
@@ -1,14 +1,9 @@
|
||||
module hello_world;
|
||||
import std;
|
||||
import bar;
|
||||
$if env::os_is_win32():
|
||||
fn int test_doubler(int x)
|
||||
{
|
||||
return x * x;
|
||||
}
|
||||
$else
|
||||
extern fn int test_doubler(int);
|
||||
$endif
|
||||
|
||||
fn int test_doubler(int x) @if(env::WIN32) => x * x;
|
||||
extern fn int test_doubler(int) @if(!env::WIN32);
|
||||
extern fn void printf(char *, ...);
|
||||
|
||||
fn int main()
|
||||
|
||||
Reference in New Issue
Block a user