aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-world.cff
blob: 6266246483285d0a252830c51d30fe110cd138d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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");
}