forked from quicksilver/Plugins
-
Notifications
You must be signed in to change notification settings - Fork 1
/
DebugSettings.h
executable file
·47 lines (38 loc) · 1.29 KB
/
DebugSettings.h
1
//**************************************************************************************// 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_ 1#endif#ifndef _TRACE_ #define _TRACE_ 1#endif//open "Console" app to check for debugging strings#if (_DEBUG_ == 1) #define DEBUG_STR(_iStr) DebugStr(_iStr) #define DEBUG_CFSTR(_iCFStr) CMUtils::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) CMUtils::DebugCFString(_iCFStr)#else #define TRACE_STR(_iStr) #define TRACE_CFSTR(_iCFStr)#endif //(_DEBUG_ == 1)