forked from mirror/openmw-tes3mp
ExprParser: Warn about ignored arguments
This commit is contained in:
parent
84a9df9793
commit
f375d07c16
1 changed files with 6 additions and 0 deletions
|
@ -804,6 +804,8 @@ namespace Compiler
|
||||||
if (optional)
|
if (optional)
|
||||||
++optionalCount;
|
++optionalCount;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
getErrorHandler().warning("Ignoring extra argument", mTokenLoc);
|
||||||
}
|
}
|
||||||
else if (*iter=='X')
|
else if (*iter=='X')
|
||||||
{
|
{
|
||||||
|
@ -815,6 +817,8 @@ namespace Compiler
|
||||||
|
|
||||||
if (parser.isEmpty())
|
if (parser.isEmpty())
|
||||||
break;
|
break;
|
||||||
|
else
|
||||||
|
getErrorHandler().warning("Ignoring extra argument", mTokenLoc);
|
||||||
}
|
}
|
||||||
else if (*iter=='z')
|
else if (*iter=='z')
|
||||||
{
|
{
|
||||||
|
@ -825,6 +829,8 @@ namespace Compiler
|
||||||
|
|
||||||
if (discardParser.isEmpty())
|
if (discardParser.isEmpty())
|
||||||
break;
|
break;
|
||||||
|
else
|
||||||
|
getErrorHandler().warning("Ignoring extra argument", mTokenLoc);
|
||||||
}
|
}
|
||||||
else if (*iter=='j')
|
else if (*iter=='j')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue