From f68447b1e469efff04647a0e20952144d95f27d7 Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Wed, 26 Feb 2025 12:34:00 +0330 Subject: main.m4 -> moonshine.m4 --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 0550dc1..de8da5c 100644 --- a/main.c +++ b/main.c @@ -7,12 +7,12 @@ void cleanup_free(var* input) { print("Deallocation logic goes here ", input); } #define auto_free __attribute__((cleanup(cleanup_free))) -#define create(name, ...) \ +#define create(type, name, ...) \ auto_free var cat(name, _parent) = __VA_ARGS__; \ - auto name = cat(name, _parent); + type name = cat(name, _parent); int main() { - create(proof_of_concept, new(int)); + create(t(int), proof_of_concept, new(int)); print("Neat, right? ", proof_of_concept); -- cgit v1.2.3