From bf292abf3e40271b158841b053e690d541181c2b Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 29 Dec 2023 07:33:40 +0100 Subject: [PATCH] Added comment bail when expanding preproc lines --- src/ulas.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ulas.c b/src/ulas.c index 8123ecf..26b3268 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -724,6 +724,10 @@ char *ulas_preprocexpand(struct ulas_preproc *pp, const char *raw_line, skip_next_tok) { def = NULL; skip_next_tok = !skip_next_tok; + } else if (pp->tok.buf[0] == ULAS_TOK_COMMENT) { + // if its a comment at the end of a preproc statement + // just bail now + break; } first_tok = 0; -- 2.30.2