mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
linecounting issues in the ftepp
This commit is contained in:
parent
2da37129d7
commit
07fa97b8e7
1 changed files with 3 additions and 0 deletions
3
ftepp.c
3
ftepp.c
|
@ -295,6 +295,7 @@ static bool ftepp_define_params(ftepp_t *ftepp, ppmacro *macro)
|
|||
static bool ftepp_define_body(ftepp_t *ftepp, ppmacro *macro)
|
||||
{
|
||||
pptoken *ptok;
|
||||
size_t l = ftepp_ctx(ftepp).line;
|
||||
while (ftepp->token != TOKEN_EOL && ftepp->token < TOKEN_EOF) {
|
||||
ptok = pptoken_make(ftepp);
|
||||
vec_push(macro->output, ptok);
|
||||
|
@ -305,6 +306,8 @@ static bool ftepp_define_body(ftepp_t *ftepp, ppmacro *macro)
|
|||
ftepp_error(ftepp, "unexpected junk after macro or unexpected end of file");
|
||||
return false;
|
||||
}
|
||||
for (; l < ftepp_ctx(ftepp).line; ++l)
|
||||
ftepp_out(ftepp, "\n", true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue