Preprocessor code in dead blocks need to be ignored even if it is invalid

Test case:
!macro dummy p1
!macroend
!if 0 ; The next line does not properly quote its string but it is not !else nor !endif so it has to be ignored
!insertmacro dummy "bar'
!endif



git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6632 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2015-11-05 04:46:14 +00:00
parent 2a341bc918
commit ce249976f7
4 changed files with 26 additions and 13 deletions

View file

@ -329,7 +329,7 @@ void CEXEBuild::print_help(const TCHAR *commandname)
}
bool CEXEBuild::is_ppbranch_token(TCHAR *s)
bool CEXEBuild::is_ppbranch_token(const TCHAR *s)
{
int np, op, pos, tkid = get_commandtoken(s, &np, &op, &pos);
switch(tkid)