aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-15 15:39:34 +0200
committerlemon <lsof@mailbox.org>2022-08-15 15:39:34 +0200
commit9a81784d8331fb59465cb9eed6207ebd3ceb25ff (patch)
tree6c83dbbe37bc10bee09741e07ea35cca228dfd61 /examples
parentfeeb86d046d55d197040c7061e39198c80373ecb (diff)
self hosted hello world parses
Diffstat (limited to 'examples')
-rw-r--r--examples/hello-world.cff11
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");
}