diff options
| author | 2025-02-26 12:34:00 +0330 | |
|---|---|---|
| committer | 2025-02-26 12:34:00 +0330 | |
| commit | f68447b1e469efff04647a0e20952144d95f27d7 (patch) | |
| tree | 57212db127c6e0da841525ea721f76b0004547af /main.c | |
| parent | fixed main.c (diff) | |
main.m4 -> moonshine.m4
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,12 +7,12 @@ void cleanup_free(var* input) { print("Deallocation logic goes here ", input); } #define auto_free __attribute__((cleanup(cleanup_free))) -#define create(name, ...) \ +#define create(type, name, ...) \ auto_free var cat(name, _parent) = __VA_ARGS__; \ - auto name = cat(name, _parent); + type name = cat(name, _parent); int main() { - create(proof_of_concept, new(int)); + create(t(int), proof_of_concept, new(int)); print("Neat, right? ", proof_of_concept); |
