- implemented super calls and proper dispatch of scripted virtual overrides for Destroy.

This commit is contained in:
Christoph Oelckers 2016-11-11 21:52:08 +01:00
commit 924096694e
5 changed files with 93 additions and 4 deletions

View file

@ -276,6 +276,7 @@ enum EFxType
EFX_TypeCheck,
EFX_DynamicCast,
EFX_GlobalVariable,
EFX_Super,
EFX_COUNT
};
@ -1241,6 +1242,23 @@ public:
ExpEmit Emit(VMFunctionBuilder *build);
};
//==========================================================================
//
// FxSuper
//
//==========================================================================
class FxSuper : public FxSelf
{
public:
FxSuper(const FScriptPosition&pos)
: FxSelf(pos)
{
ExprType = EFX_Super;
}
FxExpression *Resolve(FCompileContext&);
};
//==========================================================================
//
// FxArrayElement