//************************************************************************************** // Filename: DebugSettings.h // Part of Contextual Menu Workshop by Abracode Inc. // http://free.abracode.com/cmworkshop/ // Copyright © 2003 Abracode, Inc. All rights reserved. // // Description: // //************************************************************************************** // Revision History: // Friday, March 7, 2003 - Original //************************************************************************************** #pragma once #include "BuildSettings.h" #ifndef _DEBUG_ #define _DEBUG_ 0 #endif #ifndef _TRACE_ #define _TRACE_ 0 #endif //open "Console" app to check for debugging strings //TODO: implement DebugCFString() #if (_DEBUG_ == 1) #define DEBUG_STR(_iStr) DebugStr(_iStr) // #define DEBUG_CFSTR(_iCFStr) DebugCFString(_iCFStr) #else #define DEBUG_STR(_iStr) // #define DEBUG_CFSTR(_iCFStr) #endif //(_DEBUG_ == 1) //TRACE_STR is useful for tracing which functions are called and when //you do not need it when everything goes well, //but when you do not know what is going on it can be very helpful #if (_TRACE_ == 1) #define TRACE_STR(_iStr) DebugStr(_iStr) // #define TRACE_CFSTR(_iCFStr) DebugCFString(_iCFStr) #else #define TRACE_STR(_iStr) // #define TRACE_CFSTR(_iCFStr) #endif //(_DEBUG_ == 1)