macro: Fixed macro expansion bug
authorLukas Krickl <lukas@krickl.dev>
Mon, 14 Apr 2025 15:14:31 +0000 (17:14 +0200)
committerLukas Krickl <lukas@krickl.dev>
Mon, 14 Apr 2025 15:14:31 +0000 (17:14 +0200)
commit25a31eba007161bcf751df7da503ab91ba8a1a78
treeb8e3d1b65176f1e3eb7f15ece45fe6b974221d5b
parent90ae4673b393e530bea38440c7778c0e35ade695
macro: Fixed macro expansion bug

It was not possible for macros to expand defines correctly when a
comment was preceeding the expansion.
This was caused by the comment_seen flag that instructs the preprocessor
to skip tokens in commnets.
This flag is now unset when a new line (\n) is encountered.
.clang-tidy
src/ulas.c
tests/t0.s