!ifmacro[n]def based now works with !else
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3235 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
5028c34424
commit
774f3d50de
1 changed files with 3 additions and 3 deletions
|
@ -342,11 +342,11 @@ parse_again:
|
|||
|
||||
line.eattoken();
|
||||
|
||||
int v=line.gettoken_enum(0,"ifdef\0ifndef\0");
|
||||
int v=line.gettoken_enum(0,"ifdef\0ifndef\0ifmacrodef\0ifmacrondef\0");
|
||||
if (v < 0) PRINTHELP()
|
||||
if (line.getnumtokens() == 1) PRINTHELP()
|
||||
if (!v) tkid = TOK_P_IFDEF;
|
||||
else tkid = TOK_P_IFNDEF;
|
||||
int cmds[] = {TOK_P_IFDEF, TOK_P_IFNDEF, TOK_P_IFMACRODEF, TOK_P_IFMACRONDEF};
|
||||
tkid = cmds[v];
|
||||
if_from_else++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue