diff --git a/Engine/source/T3D/assets/TerrainAsset.cpp b/Engine/source/T3D/assets/TerrainAsset.cpp index 2887cea2d..4e03f4c20 100644 --- a/Engine/source/T3D/assets/TerrainAsset.cpp +++ b/Engine/source/T3D/assets/TerrainAsset.cpp @@ -247,7 +247,7 @@ bool TerrainAsset::getAssetByFilename(StringTableEntry fileName, AssetPtr(data); -#if TORQUE_DEBUG +#ifdef TORQUE_DEBUG Con::printf(" - Loaded card profile %s", scriptName.c_str()); #endif diff --git a/Engine/source/gfx/gl/gfxGLTextureObject.cpp b/Engine/source/gfx/gl/gfxGLTextureObject.cpp index e7dd88d4e..ea40a2e78 100644 --- a/Engine/source/gfx/gl/gfxGLTextureObject.cpp +++ b/Engine/source/gfx/gl/gfxGLTextureObject.cpp @@ -45,7 +45,7 @@ GFXGLTextureObject::GFXGLTextureObject(GFXDevice * aDevice, GFXTextureProfile *p mFrameAllocatorPtr(NULL) { -#if TORQUE_DEBUG +#ifdef TORQUE_DEBUG mFrameAllocatorMarkGuard = FrameAllocator::getWaterMark(); #endif @@ -90,7 +90,7 @@ GFXLockedRect* GFXGLTextureObject::lock(U32 mipLevel, RectI *inRect) mFrameAllocatorMark = FrameAllocator::getWaterMark(); mFrameAllocatorPtr = (U8*)FrameAllocator::alloc( size ); mLockedRect.bits = mFrameAllocatorPtr; -#if TORQUE_DEBUG +#ifdef TORQUE_DEBUG mFrameAllocatorMarkGuard = FrameAllocator::getWaterMark(); #endif diff --git a/Engine/source/gfx/gl/gfxGLTextureObject.h b/Engine/source/gfx/gl/gfxGLTextureObject.h index 90d748bab..f07cb9138 100644 --- a/Engine/source/gfx/gl/gfxGLTextureObject.h +++ b/Engine/source/gfx/gl/gfxGLTextureObject.h @@ -102,10 +102,10 @@ private: //FrameAllocator U32 mFrameAllocatorMark; -#if TORQUE_DEBUG +#ifdef TORQUE_DEBUG U32 mFrameAllocatorMarkGuard; #endif U8 *mFrameAllocatorPtr; }; -#endif \ No newline at end of file +#endif diff --git a/Engine/source/gfx/gl/gfxGLUtils.h b/Engine/source/gfx/gl/gfxGLUtils.h index 8d235d6b9..2218836b0 100644 --- a/Engine/source/gfx/gl/gfxGLUtils.h +++ b/Engine/source/gfx/gl/gfxGLUtils.h @@ -208,7 +208,7 @@ GFXGLPreserveInteger TORQUE_CONCAT(preserve_, __LINE__) (GL_READ_FRAMEBUFFER, GL GFXGLPreserveInteger TORQUE_CONCAT(preserve2_, __LINE__) (GL_DRAW_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER_BINDING, (GFXGLPreserveInteger::BindFn)glBindFramebuffer) -#if TORQUE_DEBUG +#ifdef TORQUE_DEBUG // Handy macro for checking the status of a framebuffer. Framebuffers can fail in // all sorts of interesting ways, these are just the most common. Further, no existing GL profiling diff --git a/Engine/source/persistence/taml/tamlCustom.cpp b/Engine/source/persistence/taml/tamlCustom.cpp index e45984dd4..1c0df2c13 100644 --- a/Engine/source/persistence/taml/tamlCustom.cpp +++ b/Engine/source/persistence/taml/tamlCustom.cpp @@ -42,7 +42,7 @@ void TamlCustomField::set( const char* pFieldName, const char* pFieldValue ) // Set field name. mFieldName = StringTable->insert( pFieldName ); -#if TORQUE_DEBUG +#ifdef TORQUE_DEBUG // Is the field value too big? if ( dStrlen(pFieldValue) >= sizeof(mFieldValue) ) { diff --git a/Engine/source/persistence/taml/tamlCustom.h b/Engine/source/persistence/taml/tamlCustom.h index 2f3ba857e..6dacc099d 100644 --- a/Engine/source/persistence/taml/tamlCustom.h +++ b/Engine/source/persistence/taml/tamlCustom.h @@ -640,7 +640,7 @@ public: private: inline TamlCustomField* registerField( TamlCustomField* pCustomField ) { -#if TORQUE_DEBUG +#ifdef TORQUE_DEBUG // Ensure a field name conflict does not exist. for( Vector::iterator nodeFieldItr = mFields.begin(); nodeFieldItr != mFields.end(); ++nodeFieldItr ) { @@ -724,7 +724,7 @@ public: // Set ignore-empty flag. pCustomNode->setIgnoreEmpty( ignoreEmpty ); -#if TORQUE_DEBUG +#ifdef TORQUE_DEBUG // Ensure a node name conflict does not exist. for( TamlCustomNodeVector::iterator nodeItr = mNodes.begin(); nodeItr != mNodes.end(); ++nodeItr ) {