From: Lukas Krickl Date: Fri, 29 Dec 2023 06:33:40 +0000 (+0100) Subject: Added comment bail when expanding preproc lines X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=bf292abf3e40271b158841b053e690d541181c2b;p=ulas%2F.git Added comment bail when expanding preproc lines --- 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;