aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-02-05 19:20:10 +0100
committerlemon <lsof@mailbox.org>2026-02-06 10:00:13 +0100
commit742892ecef23db1302e2fb7fa6a789ec3a590123 (patch)
tree813498a6ca22cf220fe98243d9dd289eb68160da /test
parentf9f0789e58be01b7169712d64af9443a35392fbf (diff)
cpp: add __VA_OPT__ and comma ## __VA_ARGS__ pasting
Diffstat (limited to 'test')
-rw-r--r--test/07-pp.c4
1 files changed, 2 insertions, 2 deletions
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;
}