mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Engine API: Pass structs by reference
This commit is contained in:
parent
6a9c09f145
commit
0b5fd8db6e
1 changed files with 2 additions and 2 deletions
|
|
@ -240,12 +240,12 @@ struct _EngineStructTypeTraits
|
||||||
typedef void SuperType;
|
typedef void SuperType;
|
||||||
|
|
||||||
// Structs get passed in as pointers and passed out as full copies.
|
// Structs get passed in as pointers and passed out as full copies.
|
||||||
typedef T ArgumentValueType;
|
typedef T* ArgumentValueType;
|
||||||
typedef T ReturnValueType;
|
typedef T ReturnValueType;
|
||||||
typedef T DefaultArgumentValueStoreType;
|
typedef T DefaultArgumentValueStoreType;
|
||||||
|
|
||||||
typedef ReturnValueType ReturnValue;
|
typedef ReturnValueType ReturnValue;
|
||||||
static ValueType ArgumentToValue( ArgumentValueType val ) { return val; }
|
static ValueType ArgumentToValue( ArgumentValueType val ) { return *val; }
|
||||||
|
|
||||||
static const EngineTypeInfo* const TYPEINFO;
|
static const EngineTypeInfo* const TYPEINFO;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue