diff options
Diffstat (limited to 'foo.c')
| -rw-r--r-- | foo.c | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -1,12 +1,18 @@ -#include <stdio.h> - -int main(void) { - int x = 23; - const char *s = "Hi"; -#define say(x) _Generic(x, int: printf("%d\n", x), char *: puts(s), default: puts("???")) - say(x); - say(s); -#define all(...) { __VA_ARGS__; } - all(say("one"); say(2)) +#include "nextlang.h" + +static void foo(Int64 x); + + +void foo(Int64 x) +{ + say("Hello world!"); +} + +int main(int argc, const char *argv[]) +{ + (void) argc; + (void) argv; + foo(((Int64_t) 5)); + return 0; } |
