From: Wolfgang Bumiller Date: Wed, 2 Jan 2013 09:35:00 +0000 (+0100) Subject: when recursinve into macros copy the previous line number; fixes macros showing line... X-Git-Tag: before-library~397 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c7280fca5285463dd68395f322004d249cfbbdb3;p=xonotic%2Fgmqcc.git when recursinve into macros copy the previous line number; fixes macros showing line 1 for each error --- diff --git a/ftepp.c b/ftepp.c index f5f0969..21669a8 100644 --- a/ftepp.c +++ b/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)) {