From 9812f88a9a612144bea02c7acf499867eb0cbeb9 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 13 Oct 2025 19:06:52 +0200 Subject: implement most of preprocessor - concatenation (##) - builtin macros (__FILE__ etc) - fails in some edge cases, and code needs cleanup - add embedded system include files (stddef.h, stdarg.h for now) - can handle stdio.h now --- test/pp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/pp.h') diff --git a/test/pp.h b/test/pp.h index 029c6ee..63de6f5 100644 --- a/test/pp.h +++ b/test/pp.h @@ -17,7 +17,7 @@ void hi(int x) { #define STR(h) #h #define xstr(s1) str(s1) -#define str(s) #s +#define str(...) #__VA_ARGS__ #endif -- cgit v1.2.3