allow (and discard) explicit reference on instructions that do not accept explicit references

This commit is contained in:
Marc Zinnschlag 2014-02-11 14:55:31 +01:00
parent 9de2922d22
commit 697bda6371
3 changed files with 21 additions and 4 deletions

View file

@ -38,7 +38,7 @@ namespace Compiler
}
bool Extensions::isInstruction (int keyword, std::string& argumentType,
bool explicitReference) const
bool& explicitReference) const
{
std::map<int, Instruction>::const_iterator iter = mInstructions.find (keyword);
@ -46,7 +46,7 @@ namespace Compiler
return false;
if (explicitReference && iter->second.mCodeExplicit==-1)
return false;
explicitReference = false;
argumentType = iter->second.mArguments;
return true;