From 08a03629004cf6dd5e3beaab1af422483bb0bd48 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 13 Sep 2025 15:17:24 +0900 Subject: feat: support ## operator with surrounding whitespaces --- tests/test_macro_operators.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/test_macro_operators.sh b/tests/test_macro_operators.sh index f9cc385..e456d4f 100644 --- a/tests/test_macro_operators.sh +++ b/tests/test_macro_operators.sh @@ -13,6 +13,8 @@ int var_A = 30; int number_12 = 12; +int bazqux = 42; + int main () { printf ( foobar=%d\n, foobar); printf ( prefix_test=%d\n, prefix_test); @@ -46,6 +48,9 @@ int MAKE_VAR(A) = 30; #define NUMBER(x, y) number_##x##y int NUMBER(1, 2) = 12; +#define CONCAT2(a, b) a ## b +int CONCAT2(baz, qux) = 42; + int main() { printf("foobar=%d\n", foobar); printf("prefix_test=%d\n", prefix_test); -- cgit v1.2.3-70-g09d2