1
0

Fix common def

This commit is contained in:
otya128
2016-12-23 20:58:38 +09:00
parent 26ad351c70
commit b0cd488f4f

View File

@@ -1406,10 +1406,6 @@ class CallFunctionCode : Code
{
throw new IllegalFunctionCall(name.to!string);
}
if (func.isCommon)
{
vm.setCurrentSlot(func.slot.index);
}
vm.pushBackTrace(name);
//TODO:args
auto bp = vm.stacki;
@@ -1426,6 +1422,10 @@ class CallFunctionCode : Code
vm.stack[bp + v.index] = Value(v.type);
}
}
if (func.isCommon)
{
vm.setCurrentSlot(func.slot.index);
}
}
override string toString(VM vm)
{