mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 20:10:35 +00:00
when recursinve into macros copy the previous line number; fixes macros showing line 1 for each error
This commit is contained in:
parent
686394654f
commit
c7280fca52
1 changed files with 2 additions and 0 deletions
2
ftepp.c
2
ftepp.c
|
@ -647,6 +647,8 @@ static bool ftepp_macro_expand(ftepp_t *ftepp, ppmacro *macro, macroparam *param
|
|||
goto cleanup;
|
||||
}
|
||||
ftepp->output_string = old_string;
|
||||
inlex->line = ftepp->lex->line;
|
||||
inlex->sline = ftepp->lex->sline;
|
||||
ftepp->lex = inlex;
|
||||
ftepp_recursion_header(ftepp);
|
||||
if (!ftepp_preprocess(ftepp)) {
|
||||
|
|
Loading…
Reference in a new issue