From 742892ecef23db1302e2fb7fa6a789ec3a590123 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 5 Feb 2026 19:20:10 +0100 Subject: cpp: add __VA_OPT__ and comma ## __VA_ARGS__ pasting --- test/07-pp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/07-pp.c b/test/07-pp.c index 14bef33..dd179fb 100644 --- a/test/07-pp.c +++ b/test/07-pp.c @@ -32,7 +32,7 @@ u\ t\ s -#define gnu_ext(a, c...) a(c) +#define gnu_ext(a, w, c...) a(w, ## c) __VA_OPT__(;) # define STACK_OF(type) struct stack_st_##type @@ -79,7 +79,7 @@ S\ * escapes the 0, ending the string early. */ ); - gnu_ext(printf, "ok %s\n", "..."); + gnu_ext(printf, "ok %s", "...") gnu_ext(printf, "\n"); CAT(ret,urn) 0; } -- cgit v1.2.3