mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Split script/functions.cpp into multiple files in new script/functions/ directory.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@217 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -419,14 +419,14 @@ void parseExpr(TokenIterator& input, Script& script, Precedence minPrec) {
|
||||
long l = 0;
|
||||
//l = lexical_cast<long>(token.value);
|
||||
token.value.ToLong(&l);
|
||||
script.addInstruction(I_PUSH_CONST, toScript(l));
|
||||
script.addInstruction(I_PUSH_CONST, to_script(l));
|
||||
} else if (token == TOK_DOUBLE) {
|
||||
double d = 0;
|
||||
//d = lexical_cast<double>(token.value);
|
||||
token.value.ToDouble(&d);
|
||||
script.addInstruction(I_PUSH_CONST, toScript(d));
|
||||
script.addInstruction(I_PUSH_CONST, to_script(d));
|
||||
} else if (token == TOK_STRING) {
|
||||
script.addInstruction(I_PUSH_CONST, toScript(token.value));
|
||||
script.addInstruction(I_PUSH_CONST, to_script(token.value));
|
||||
} else {
|
||||
throw ScriptParseError(_("Unexpected token '") + token.value + _("'"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user