diff --git a/uppsrc/CppBase/Parser.cpp b/uppsrc/CppBase/Parser.cpp index 67037c854..1a1147cb3 100644 --- a/uppsrc/CppBase/Parser.cpp +++ b/uppsrc/CppBase/Parser.cpp @@ -1737,8 +1737,6 @@ void Parser::Do(Stream& in, CppBase& _base, int filei_, int filetype_, { LLOG("= C++ Parser ==================================== " << fn); base = &_base; - file = PreProcess(in, *this); - lex.Init(~file.text); err = _err; filei = filei_; filetype = filetype_; @@ -1756,6 +1754,9 @@ void Parser::Do(Stream& in, CppBase& _base, int filei_, int filetype_, AddNamespace(n, namespace_stack[i]); } + file = PreProcess(in, *this); + lex.Init(~file.text); + while(lex != t_eof) try { try {