mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-06 05:10:40 +00:00
replaced DEBUG with GSWDEBUG
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@13035 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a1d6b45417
commit
cf1cf734e8
1 changed files with 10 additions and 10 deletions
|
@ -27,7 +27,7 @@
|
||||||
#define _GSWebDebug_h__
|
#define _GSWebDebug_h__
|
||||||
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef GSWDEBUG
|
||||||
extern void GSWLogC_(CONST char* file,int line,CONST char* string);
|
extern void GSWLogC_(CONST char* file,int line,CONST char* string);
|
||||||
extern void GSWLogDumpObject_(CONST char* file,int line,id object,int deep);
|
extern void GSWLogDumpObject_(CONST char* file,int line,id object,int deep);
|
||||||
extern void GSWLogAssertGood_(CONST char* file,int line,NSObject* object);
|
extern void GSWLogAssertGood_(CONST char* file,int line,NSObject* object);
|
||||||
|
@ -57,17 +57,17 @@ extern void GSWLogAssertGood_(CONST char* file,int line,NSObject* object);
|
||||||
#define GSWLogDeepC(cString);
|
#define GSWLogDeepC(cString);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else // no GSWDEBUG
|
||||||
#define GSWLogC(cString);
|
#define GSWLogC(cString); {}
|
||||||
#define GSWLogDumpObject(object,deep);
|
#define GSWLogDumpObject(object,deep); {}
|
||||||
#define GSWLogAssertGood(object);
|
#define GSWLogAssertGood(object); {}
|
||||||
#define GSWLogMemC(cString);
|
#define GSWLogMemC(cString); {}
|
||||||
#define GSWLogLockC(cString);
|
#define GSWLogLockC(cString); {}
|
||||||
#define GSWLogDeepC(cString);
|
#define GSWLogDeepC(cString); {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Normal Debug
|
// Normal Debug
|
||||||
#ifdef DEBUG
|
#ifdef GSWDEBUG
|
||||||
#define LOGClassFnStart() \
|
#define LOGClassFnStart() \
|
||||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART"); \
|
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART"); \
|
||||||
|
@ -235,7 +235,7 @@ extern void GSWLogAssertGood_(CONST char* file,int line,NSObject* object);
|
||||||
__PRETTY_FUNCTION__, __FILE__, __LINE__, format); \
|
__PRETTY_FUNCTION__, __FILE__, __LINE__, format); \
|
||||||
NSLog(fmt); }} while (0)
|
NSLog(fmt); }} while (0)
|
||||||
|
|
||||||
#else
|
#else // no GSWDEBUG
|
||||||
#define LOGClassFnStart() {}
|
#define LOGClassFnStart() {}
|
||||||
#define LOGClassFnStop() {}
|
#define LOGClassFnStop() {}
|
||||||
#define LOGClassFnStartC(comment) {}
|
#define LOGClassFnStartC(comment) {}
|
||||||
|
|
Loading…
Reference in a new issue