#define _ConsoleBitfieldType(
typeName, type, nativeType ) \
S32 type; \
ImplementConsoleTypeCasters( type, nativeType ) \
class BitfieldConsoleType ## type :
public BitfieldConsoleBaseType \
{ \
public: \
BitfieldConsoleType ## type() \
:
BitfieldConsoleBaseType(
sizeof( nativeType ), &type, #type ) \
{ \
mTypeInfo = _MAPTYPE< nativeType >(); \
} \
virtual const char *getTypeClassName() {
return #typeName; } \
virtual void *getNativeVariable() {
return new nativeType; } \
virtual void deleteNativeVariable(
void* var) { nativeType* nativeVar =
reinterpret_cast< nativeType* >( var );
delete nativeVar; }\
}; \
BitfieldConsoleType ## type gConsoleType ## type ## Instance;