diff options
| author | 2025-02-26 12:31:37 +0330 | |
|---|---|---|
| committer | 2025-02-26 12:31:37 +0330 | |
| commit | c6f2e6373a5c528d6de2759b9ca872787b50bbe8 (patch) | |
| tree | cb3f720cd7f01aceeb93c6ca3e5ff11365e0bd9b | |
| parent | added readme (diff) | |
fixed main.c
| -rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |
