From 9a81784d8331fb59465cb9eed6207ebd3ceb25ff Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 15 Aug 2022 15:39:34 +0200 Subject: self hosted hello world parses --- examples/hello-world.cff | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'examples') 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"); } -- cgit v1.2.3