mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-24 09:03:48 +00:00
Pass structs by value, not by reference, in EngineAPI. This simplifies call-layout through EngineAPI
This commit is contained in:
parent
780e1dc73f
commit
2fe623b761
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue