From 46d9925f19452dc447acaa06706c2c2a87f77ad4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 13 Apr 2022 07:24:01 -0700 Subject: fun() must expand arg; fix __fun clash issue. --- cppawk-include/base.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cppawk-include/base.h') diff --git a/cppawk-include/base.h b/cppawk-include/base.h index f22f599..5472233 100644 --- a/cppawk-include/base.h +++ b/cppawk-include/base.h @@ -34,6 +34,8 @@ #define __cat(a, b) a ## b #define __xcat(a, b) __cat(a, b) +#define __str(x) # x +#define __xstr(x) __str(x) #define __g(name) __xcat(name, __LINE__) #define __error(...) { printf(__VA_ARGS__); print; exit 1 } -- cgit v1.2.3