From cc2e2cd436c74b511f2035c3d1e7b7c52e6305d0 Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Thu, 27 Feb 2025 18:14:31 +0330 Subject: 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 --- main.c | 1 - 1 file changed, 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index f49b452..abd1b21 100644 --- a/main.c +++ b/main.c @@ -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 *) )); -- cgit v1.2.3