- added the required code genration nodes for member function calls.

This is not testable right now because finally the action function mess has come full circle. The current setup makes it impossible to call action functions from non-action functions because the needed info is local to the functions.
Long avoided, this needs to be refactored now so that the different semantics for action functions are no longer needed.
This commit is contained in:
Christoph Oelckers 2016-10-22 12:10:19 +02:00
commit d6047ae651
7 changed files with 179 additions and 37 deletions

View file

@ -2066,7 +2066,7 @@ FxExpression *ZCCCompiler::SetupActionFunction(PClassActor *cls, ZCC_TreeNode *a
if (fc->Parameters == nullptr && (afd->Variants[0].Flags & VARF_Action))
{
// We can use this function directly without wrapping it in a caller.
return new FxVMFunctionCall(afd, nullptr, *af, true);
return new FxVMFunctionCall(new FxSelf(*af), afd, nullptr, *af, false);
}
}
else