From c6f2e6373a5c528d6de2759b9ca872787b50bbe8 Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Wed, 26 Feb 2025 12:31:37 +0330 Subject: fixed main.c --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index b01452e..0550dc1 100644 --- a/main.c +++ b/main.c @@ -3,7 +3,7 @@ #define __MOONSHINE_LIBC_WARNINGS #include "moonshine.h" -void cleanup_free(var* input) { print("Free that thang ", input); } +void cleanup_free(var* input) { print("Deallocation logic goes here ", input); } #define auto_free __attribute__((cleanup(cleanup_free))) @@ -12,7 +12,9 @@ void cleanup_free(var* input) { print("Free that thang ", input); } auto name = cat(name, _parent); int main() { - print("Wow ", strdup("Gay smex")[ 0 ]); + create(proof_of_concept, new(int)); + + print("Neat, right? ", proof_of_concept); return 0; } -- cgit v1.2.3