From b08a0d3e2bf45bae11c982dd24d0292d6436b993 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 4 Feb 2024 18:04:41 -0500 Subject: Updates and functionality --- foo.c | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'foo.c') diff --git a/foo.c b/foo.c index 0d78c720..80b88cfb 100644 --- a/foo.c +++ b/foo.c @@ -1,12 +1,18 @@ -#include - -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; } -- cgit v1.2.3