Fixed dynamic arrays as function arguments.
This commit is contained in:
parent
4ae16c27e2
commit
3071723a67
2 changed files with 140 additions and 2 deletions
|
|
@ -302,6 +302,7 @@ enum EFxType
|
|||
EFX_GetDefaultByType,
|
||||
EFX_FontCast,
|
||||
EFX_LocalArrayDeclaration,
|
||||
EFX_OutVarDereference,
|
||||
EFX_COUNT
|
||||
};
|
||||
|
||||
|
|
@ -2209,4 +2210,27 @@ public:
|
|||
ExpEmit Emit(VMFunctionBuilder *build);
|
||||
};
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
class FxOutVarDereference : public FxExpression
|
||||
{
|
||||
FxExpression *Self;
|
||||
PType *SelfType;
|
||||
bool AddressWritable;
|
||||
|
||||
public:
|
||||
FxOutVarDereference(FxExpression *self, const FScriptPosition &p)
|
||||
: FxExpression(EFX_OutVarDereference, p), Self (self)
|
||||
{
|
||||
}
|
||||
~FxOutVarDereference();
|
||||
FxExpression *Resolve(FCompileContext &);
|
||||
bool RequestAddress(FCompileContext &ctx, bool *writable);
|
||||
ExpEmit Emit(VMFunctionBuilder *build);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue