Torque 3D 3.8
ContentsIndexHome
PreviousUpNext
_CHECK_ENGINE_INITIALIZED_IMPL Macro
Syntax
C++
#define _CHECK_ENGINE_INITIALIZED_IMPL( fnName, returnType ) \ if( !engineAPI::gIsInitialized ) \ { \ Con::errorf( "EngineAPI: Engine not initialized when calling " #fnName ); \ return EngineTypeTraits< returnType >::ReturnValue( EngineTypeTraits< returnType >::ReturnValueType() ); \ }

Helpers to implement initialization checks. Pulled out into separate macros so this can be deactivated easily. Especially important for the initialize() function itself.

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