aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--proof_of_concepts.c11
2 files changed, 1 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
index 269e4ce..3523a4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ out.*
moonshine.expander.h
perf.data*
builder
+safekeep/
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);