added class pointer casts. Due to grammar problems the type has to be put into parentheses to get the class token out of the global parsing namespace:

class<Actor> myclass = (class<Actor>)(GetClass());
This commit is contained in:
Christoph Oelckers 2016-11-17 20:31:53 +01:00
parent 022228d8a9
commit 3bcd85eb8a
8 changed files with 167 additions and 0 deletions

View file

@ -102,6 +102,7 @@ enum EZCCTreeNodeType
AST_PropertyStmt,
AST_VectorValue,
AST_DeclFlags,
AST_ClassCast,
NUM_AST_NODE_TYPES
};
@ -366,6 +367,12 @@ struct ZCC_ExprFuncCall : ZCC_Expression
ZCC_FuncParm *Parameters;
};
struct ZCC_ClassCast : ZCC_Expression
{
ENamedName ClassName;
ZCC_FuncParm *Parameters;
};
struct ZCC_ExprMemberAccess : ZCC_Expression
{
ZCC_Expression *Left;