- Added a new intrinsic for class pointers to check if the class is abstract (#1308)

This commit is contained in:
Player701 2021-02-18 13:17:23 +03:00 committed by GitHub
commit 387abf81a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 69 additions and 0 deletions

View file

@ -298,6 +298,7 @@ enum EFxType
EFX_GetClass,
EFX_GetParentClass,
EFX_GetClassName,
EFX_IsAbstract,
EFX_StrLen,
EFX_ColorLiteral,
EFX_GetDefaultByType,
@ -1663,6 +1664,24 @@ public:
ExpEmit Emit(VMFunctionBuilder *build);
};
//==========================================================================
//
// FxIsAbstract
//
//==========================================================================
class FxIsAbstract : public FxExpression
{
FxExpression* Self;
public:
FxIsAbstract(FxExpression* self);
~FxIsAbstract();
FxExpression *Resolve(FCompileContext&);
ExpEmit Emit(VMFunctionBuilder* build);
};
//==========================================================================
//
// FxColorLiteral