diff options
| author | 2026-03-24 20:13:28 +0100 | |
|---|---|---|
| committer | 2026-03-24 20:13:28 +0100 | |
| commit | 803dbff03b7c30f276f6b8923b1c6b0a28e7b4f6 (patch) | |
| tree | 13b7c0576e313b4e63318055bcbc5ff9667f60f8 /src/u_io.c | |
| parent | fbb7bd3e9a67a0390c7de5667a8141fcbb1d58e2 (diff) | |
cpp: support directives within macro argument list
Undefined behavior by the standard but a GNU extension.
Diffstat (limited to 'src/u_io.c')
| -rw-r--r-- | src/u_io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -562,6 +562,8 @@ vbfmt(WriteBuf *out, const char *fmt, va_list ap) n += tok->len; } else if (aisprint(tok->t)) { n += bputc(buf, tok->t); + } else if (tok->t == '\n') { + n += bwriteS(buf, "<newline>"); } else { n += bwriteS(buf, "??"); } |