diff options
| author | 2025-02-27 18:14:31 +0330 | |
|---|---|---|
| committer | 2025-02-27 18:14:31 +0330 | |
| commit | cc2e2cd436c74b511f2035c3d1e7b7c52e6305d0 (patch) | |
| tree | 33390f323ef68ddb4f160834aa94c15a150c0af2 /main.c | |
| parent | Slight revamp + Algebraic data types (diff) | |
Overhauled print macro
Changes:
- Moved to overloads instead of generics
- Printing static strings should be more performant at runtime
- Now the macro will give you an error if the type is unrecognized (not for pointers though)
- Shortened code size
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1,6 +1,5 @@ // This is the test unit, not the actual code. -#define __MOONSHINE_LIBC_WARNINGS #include "moonshine.h" datatype(binarytree, ((leaf, int), (node, binarytree *, int, binarytree *) )); |
