aboutsummaryrefslogtreecommitdiff
path: root/proof_of_concepts.c
diff options
context:
space:
mode:
authorGravatar Moon Flower <moon@coffin.ir> 2025-03-12 14:48:43 +0330
committerGravatar Moon Flower <moon@coffin.ir> 2025-03-12 14:48:43 +0330
commit2f2bcf071d3b632d7e3fa590b4b9e53e1dc3737f (patch)
treecb13dc07eac463cf9b817c8031110200089d2386 /proof_of_concepts.c
parentBuild system improvements (diff)
Moved unnecessary files to local.
Diffstat (limited to 'proof_of_concepts.c')
-rw-r--r--proof_of_concepts.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/proof_of_concepts.c b/proof_of_concepts.c
deleted file mode 100644
index 7afc90b..0000000
--- a/proof_of_concepts.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include "moonshine.h"
-
-// Free variable when it goes out of scope
-
-void cleanup_free(var *input) { print("Deallocation logic goes here ", input); }
-
-#define auto_free __attribute__((cleanup(cleanup_free)))
-
-#define create(type, name, ...) \
- auto_free var cat(name, _parent) = __VA_ARGS__; \
- type name = cat(name, _parent);