1, support macro: __VA_ARGS__, #error, support 'defined' with () in #if, master
authoryu.dongliang <18588496441@163.com>
Sat, 1 Aug 2026 08:09:54 +0000 (16:09 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 1 Aug 2026 08:11:46 +0000 (16:11 +0800)
commiteb46170723cc0fdc59653aa87ac398dd351540ba
tree9cd953cc94e054bfa569bd84a153d1a9401b10eb
parentf58599480c8947e684b2bc05d4862970f6895e3b
1, support macro: __VA_ARGS__, #error, support 'defined' with () in #if,
2, ingnore macro: #pragma, #line,
3, add some 'lex check' for wrong source code.
12 files changed:
core/scf_lex_word.h
examples/macro_defined.c [new file with mode: 0644]
examples/macro_error.c [new file with mode: 0644]
examples/macro_if.c
examples/macro_str.c
examples/macro_varg.c [new file with mode: 0644]
lex/scf_lex.c
lex/scf_lex.h
lex/scf_lex_util.c
lex/scf_macro.c
lex/scf_macro_expr.c
parse/scf_dfa_util.h