Fix common def
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user