- made GetClassName an intrinsic and expanded it to also work on class types.
This commit is contained in:
parent
1135f154b7
commit
92acbdc625
5 changed files with 87 additions and 15 deletions
|
|
@ -296,6 +296,7 @@ enum EFxType
|
|||
EFX_NamedNode,
|
||||
EFX_GetClass,
|
||||
EFX_GetParentClass,
|
||||
EFX_GetClassName,
|
||||
EFX_StrLen,
|
||||
EFX_ColorLiteral,
|
||||
EFX_GetDefaultByType,
|
||||
|
|
@ -1660,6 +1661,24 @@ public:
|
|||
ExpEmit Emit(VMFunctionBuilder *build);
|
||||
};
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FxGetClass
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
class FxGetClassName : public FxExpression
|
||||
{
|
||||
FxExpression *Self;
|
||||
|
||||
public:
|
||||
|
||||
FxGetClassName(FxExpression *self);
|
||||
~FxGetClassName();
|
||||
FxExpression *Resolve(FCompileContext&);
|
||||
ExpEmit Emit(VMFunctionBuilder *build);
|
||||
};
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FxGetDefaultByType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue