diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-26 20:43:21 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-26 20:43:21 +0900 |
| commit | b3b3c8bcd07e644fdba9167f927ad8dee4a255db (patch) | |
| tree | bedc96885ce9235a49cb9d7864cf94ff673fd4c7 /src/token.c | |
| parent | 467d3de2dea0cb50ab9b6f1a426486c57f64f1b6 (diff) | |
| download | ducc-b3b3c8bcd07e644fdba9167f927ad8dee4a255db.tar.gz ducc-b3b3c8bcd07e644fdba9167f927ad8dee4a255db.tar.zst ducc-b3b3c8bcd07e644fdba9167f927ad8dee4a255db.zip | |
feat: support nop preprocessing directive
Diffstat (limited to 'src/token.c')
| -rw-r--r-- | src/token.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/token.c b/src/token.c index 40463cd..71eabaf 100644 --- a/src/token.c +++ b/src/token.c @@ -44,6 +44,8 @@ const char* token_kind_stringify(TokenKind k) { return "#include"; else if (k == TokenKind_pp_directive_line) return "#line"; + else if (k == TokenKind_pp_directive_nop) + return "#"; else if (k == TokenKind_pp_directive_pragma) return "#pragma"; else if (k == TokenKind_pp_directive_undef) |
