Torque 3D 3.8
ContentsIndexHome
PreviousUpNext
T Macro
Syntax
C++
#define T( x ) typename EngineTypeTraits< x >::ValueType

Temporary helper. Used to strip the return or argument types supplied in a function type down to the value type and thus account for the discrepancy between (argument/return) value types and engine types. Don't go for the base type as VC will not allow us to use abstract types even in return or argument positions of abstract function types (GCC allows it; not sure what the stance of the ANSI C++ standard towards this is). Also, while it may be tempting to go for the real return and argument value types here, this would lead to errors as these are not guaranteed to be any meaningful value or base types to the engine type system.

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