diff options
| author | 2022-08-15 15:39:34 +0200 | |
|---|---|---|
| committer | 2022-08-15 15:39:34 +0200 | |
| commit | 9a81784d8331fb59465cb9eed6207ebd3ceb25ff (patch) | |
| tree | 6c83dbbe37bc10bee09741e07ea35cca228dfd61 /examples | |
| parent | feeb86d046d55d197040c7061e39198c80373ecb (diff) | |
self hosted hello world parses
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/hello-world.cff | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/examples/hello-world.cff b/examples/hello-world.cff index 6266246..9764ac2 100644 --- a/examples/hello-world.cff +++ b/examples/hello-world.cff @@ -1,13 +1,6 @@ extern fn printf(fmt *const u8, ...) int; -#when sizeof *void == 8 { -def str = "hello 64-bit"; -} -#when sizeof *void == 4 { -def str = "hello 32-bit"; -} - -extern fn main(argc int, argv *const *const u8) int { - printf(str ## "\n"); +extern fn main(argc int, argc *const *const u8) int { + printf("hello world\n"); } |