mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Pass structs by value, not by reference, in EngineAPI. This simplifies call-layout through EngineAPI
This commit is contained in:
parent
7d2587ad2b
commit
6b7be51d61
|
|
@ -236,16 +236,16 @@ template< typename T >
|
|||
struct _EngineStructTypeTraits
|
||||
{
|
||||
typedef T Type;
|
||||
typedef const T& ValueType;
|
||||
typedef const T ValueType;
|
||||
typedef void SuperType;
|
||||
|
||||
// Structs get passed in as pointers and passed out as full copies.
|
||||
typedef T* ArgumentValueType;
|
||||
typedef T ArgumentValueType;
|
||||
typedef T ReturnValueType;
|
||||
typedef T DefaultArgumentValueStoreType;
|
||||
|
||||
typedef ReturnValueType ReturnValue;
|
||||
static ValueType ArgumentToValue( ArgumentValueType val ) { return *val; }
|
||||
static ValueType ArgumentToValue( ArgumentValueType val ) { return val; }
|
||||
|
||||
static const EngineTypeInfo* const TYPEINFO;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue