aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Moon Flower <moon@coffin.ir> 2025-02-26 12:31:37 +0330
committerGravatar Moon Flower <moon@coffin.ir> 2025-02-26 12:31:37 +0330
commitc6f2e6373a5c528d6de2759b9ca872787b50bbe8 (patch)
treecb3f720cd7f01aceeb93c6ca3e5ff11365e0bd9b
parentadded readme (diff)
fixed main.c
-rw-r--r--main.c6
1 files 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;
}