Torque 3D 3.7
ContentsIndexHome
PreviousUpNext
_DECLARE_PRIMITIVE Macro
Syntax
C++
#define _DECLARE_PRIMITIVE( type ) \ _DECLARE_TYPE( type ) \ template<> \ struct EngineTypeTraits< type > : public _EnginePrimitiveTypeTraits< type > {};

Unlike the other types, primitives directly specialize on EngineTypeTraits instead of _EngineTypeTraits so as to prevent any stripping from taking place. Otherwise, pointers could not be primitive types.

Copyright (c) 2015. All rights reserved.
What do you think about this topic? Send feedback!