Commit Graph

21 Commits

Author SHA1 Message Date
Rui Ueyama
5cb2f89e6a Add defined() macro operator 2020-12-07 12:00:06 +09:00
Rui Ueyama
8f561aed9b Add macro token-pasting operator (##) 2020-12-07 12:00:06 +09:00
Rui Ueyama
8f6f7925a0 Add macro stringizing operator (#) 2020-12-07 12:00:06 +09:00
Rui Ueyama
1313fc6d3a Do not expand a token more than once for the same funclike macro 2020-12-07 12:00:06 +09:00
Rui Ueyama
c7d7ce0f0c Allow parenthesized expressions as macro arguments 2020-12-07 12:00:06 +09:00
Rui Ueyama
b9ad3e43cf Add multi-arity funclike #define 2020-12-07 12:00:06 +09:00
Rui Ueyama
dec3b3fa02 Add zero-arity funclike #define 2020-12-07 12:00:06 +09:00
Rui Ueyama
1f80f581e5 Add #ifdef and #ifndef 2020-12-07 12:00:06 +09:00
Rui Ueyama
acce00228b Do not expand a token more than once for the same objlike macro 2020-12-07 12:00:06 +09:00
Rui Ueyama
2651448084 Expand macros in the #if and #elif argument context 2020-12-07 12:00:06 +09:00
Rui Ueyama
9ad60e41d5 Add #undef 2020-12-07 12:00:06 +09:00
Rui Ueyama
97d33ad3bd Add objlike #define 2020-12-07 12:00:06 +09:00
Rui Ueyama
e7a1857a31 Add #elif 2020-12-07 12:00:06 +09:00
Rui Ueyama
c6e81d22f8 Add #else 2020-12-07 12:00:06 +09:00
Rui Ueyama
aa570f3086 Skip nested #if in a skipped #if-clause 2020-12-07 12:00:06 +09:00
Rui Ueyama
bf6ff928ad Add #if and #endif 2020-12-07 12:00:06 +09:00
Rui Ueyama
d138864a2a Add -E option 2020-12-07 12:00:06 +09:00
Rui Ueyama
ec149f64d2 Skip extra tokens after #include "..." 2020-12-07 12:00:06 +09:00
Rui Ueyama
d367510fcc Add #include "..." 2020-12-07 12:00:06 +09:00
Rui Ueyama
146c7b3dd4 Add the null directive 2020-12-07 12:00:06 +09:00
Rui Ueyama
1e1ea39dad Add a do-nothing preprocessor 2020-12-07 12:00:06 +09:00