mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-30 16:50:52 +00:00
2002-03-07 Manuel Guesdon <mguesdon@orange-concept.com>
* GSWeb.framework/GSWAdaptor.h/.m: o added -isMultiThreadEnabled o method parameters names changes to conform to coding standards * GSWeb.framework/GSWResponse.h: o method parameters names changes to conform to coding standards o added missing method declarations * GSWeb.framework/GSWTemplateParserXML.m: o remove some 'error' messages from xml parser * GSWExtensions.framework/Makefile.preamble: o various changes (debug flags,...) * GSWExtensionsGSW.framework/Makefile.preamble: o various changes (debug flags,...) * GSWeb.framework/Makefile.preamble: o various changes (debug flags,libwrap,...) * GSWeb.framework/GSWDebug.h: o debug flags changes * GSWExtensions.framework/GSWExceptionPage.gswc/GSWExceptionPage.gswd: o change .gif to .mng * GSWExtensions.framework/GSWPageRestorationErrorPage.gswc/GSWPageRestorationErrorPage.gswd: o change .gif to .mng * GSWExtensions.framework/GSWSessionCreationErrorPage.gswc/GSWSessionCreationErrorPage.gswd: o change .gif to .mng * GSWeb.framework/GSWConfig.h: added GSWOPTVALUE_AdaptorHost * GSWeb.framework/GSWConstants.h/.m: added GSWOPT_AdaptorHost * GSWeb.framework/GSWApplication.m: added GSWOPT_AdaptorHost default value * GSWeb.framework/GSWDefaultAdaptor.h/.m: o adding connection refuse feature o added ivar adaptorHost o added host and port in "Waiting for connections" message o ivar names changes to conform to coding standards * GSWeb.framework/GSWDefaultAdaptorThread.m: o adding connection refuse feature o ivar names changes to conform to coding standards * GSWeb.framework/GSWComponent.m: o logs * GSWeb.framework/GSWDeployedBundle.m: o Search WebServer resources in Resources/WebServer/ instead of WebServerResources * GSWeb.framework/GSWProjectBundle.m o bug fix for wonames * GSWExtensions.framework/GSWDictionaryRepetition.h/m: o ivar names changes to conform to coding standards * GSWExtensions.framework/GSWCollapsibleComponentContent.h/.m: o ivar names changes to conform to coding standards * GSWExtensions.framework/GSWExceptionPage.h/.m: o ivar names changes to conform to coding standards * GSWExtensions.framework/GSWIFrame.m: o ivar names changes to conform to coding standards * GSWExtensions.framework/GSWMetaRefresh.m: o ivar names changes to conform to coding standards * GSWExtensions.framework/GSWPageRestorationErrorPage.h/.m: o ivar names changes to conform to coding standards * GSWExtensions.framework/GSWRedirect.h/.m: o ivar names changes to conform to coding standards * GSWExtensions.framework/GSWSessionRestorationErrorPage.h/.m: o ivar names changes to conform to coding standards * GSWExtensions.framework/GSWSessionCreationErrorPage.h/.m: o ivar names changes to conform to coding standards * GSWExtensions.framework/GSWStatsPage.h/.m: o ivar names changes to conform to coding standards * GSWExtensionsGSW.framework/GSWFileUploadFormComponent.h/.m: o ivar names changes to conform to coding standards * GSWExtensionsGSW.framework/GSWSimpleFormComponent.h/.m: o ivar names changes to conform to coding standards * GSWExtensionsGSW.framework/GSWTabComponent.m: o ivar names changes to conform to coding standards * GSWExtensionsGSW.framework/GSWValidationFailureComponent.h/.m: o ivar names changes to conform to coding standards git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@13029 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ae1602efd4
commit
9e52c551c6
63 changed files with 3013 additions and 1708 deletions
|
@ -1,7 +1,7 @@
|
|||
/* debug.h - debug
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
/** debug.h - debug
|
||||
Copyright (C) 1999-2002 Free Software Foundation, Inc.
|
||||
|
||||
Written by: Manuel Guesdon <mguesdon@sbuilders.com>
|
||||
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
Date: Jan 1999
|
||||
|
||||
This file is part of the GNUstep Web Library.
|
||||
|
@ -19,7 +19,7 @@
|
|||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
**/
|
||||
|
||||
// $Id$
|
||||
|
||||
|
@ -35,13 +35,38 @@ extern void GSWLogAssertGood_(CONST char* file,int line,NSObject* object);
|
|||
#define GSWLogC(cString); GSWLogC_(__FILE__,__LINE__,cString);
|
||||
#define GSWLogDumpObject(object,deep); GSWLogDumpObject_(__FILE__,__LINE__,object,deep);
|
||||
#define GSWLogAssertGood(object); GSWLogAssertGood_(__FILE__,__LINE__,object);
|
||||
|
||||
//Log Memory Alloc/Dealloc
|
||||
#ifdef GSWDEBUG_MEM
|
||||
#define GSWLogMemC(cString); GSWLogC_(__FILE__,__LINE__,cString);
|
||||
#else
|
||||
#define GSWLogMemC(cString);
|
||||
#endif
|
||||
|
||||
//Log Locks
|
||||
#ifdef GSWDEBUG_LOCK
|
||||
#define GSWLogLockC(cString); GSWLogC_(__FILE__,__LINE__,cString);
|
||||
#else
|
||||
#define GSWLogLockC(cString);
|
||||
#endif
|
||||
|
||||
//Log Locks
|
||||
#ifdef GSWDEBUG_DEEP
|
||||
#define GSWLogDeepC(cString); GSWLogC_(__FILE__,__LINE__,cString);
|
||||
#else
|
||||
#define GSWLogDeepC(cString);
|
||||
#endif
|
||||
|
||||
#else
|
||||
#define GSWLogC(cString);
|
||||
#define GSWLogDumpObject(object,deep);
|
||||
#define GSWLogAssertGood(object);
|
||||
#define GSWLogMemC(cString);
|
||||
#define GSWLogLockC(cString);
|
||||
#define GSWLogDeepC(cString);
|
||||
#endif
|
||||
|
||||
|
||||
// Normal Debug
|
||||
#ifdef DEBUG
|
||||
#define LOGClassFnStart() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
|
@ -83,7 +108,6 @@ extern void GSWLogAssertGood_(CONST char* file,int line,NSObject* object);
|
|||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTOP %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
|
||||
#define LOGObjectFnStart() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTART"); \
|
||||
|
@ -243,4 +267,437 @@ extern void GSWLogAssertGood_(CONST char* file,int line,NSObject* object);
|
|||
#define NSDebugMLLogCond(cond, level, format, args...) {}
|
||||
#define NSDebugMLogCond(cond, format, args...) {}
|
||||
#endif
|
||||
|
||||
//Deep Debug
|
||||
#if defined(DEBUG) && defined(GSWDEBUG_DEEP)
|
||||
#define LOGDEEPClassFnStart() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPClassFnStop() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__,__FILE__, __LINE__,@"FNSTOP"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPClassFnStartC(comment) \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGDEEPClassFnStopC(comment) \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTOP %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGDEEPClassFnStartCond(cond) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPClassFnStopCond(cond) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTOP"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPClassFnStartCondC(cond,comment) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGDEEPClassFnStopCondC(cond,comment) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTOP %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGDEEPObjectFnStart() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTART"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPObjectFnStop() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTOP"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPObjectFnStartC(comment) \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTART %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGDEEPObjectFnStopC(comment) \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTOP %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGDEEPObjectFnStartCond(cond) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTART"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPObjectFnStopCond(cond) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTOP"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPObjectFnStartCondC(cond,comment) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTART %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGDEEPObjectFnStopCondC(cond,comment) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTOP %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGDEEPObjectFnNotImplemented() \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"NOT IMPLEMENTED"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPClassFnNotImplemented() \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"NOT IMPLEMENTED"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPClassFnNotImplemented() \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"NOT IMPLEMENTED"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGDEEPSeriousError(format, args...) \
|
||||
do { if (GSDebugSet(@"seriousError") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*SERIOUS ERROR*: %@",fmt]; \
|
||||
NSLog(fmt2, ## args); }} while (0)
|
||||
|
||||
#define LOGDEEPSeriousError0(format) \
|
||||
do { if (GSDebugSet(@"seriousError") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*SERIOUS ERROR*: %@",fmt]; \
|
||||
NSLog(@"%@",fmt2); }} while (0)
|
||||
|
||||
#define LOGDEEPException(format, args...) \
|
||||
do { if (GSDebugSet(@"exception") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*EXCEPTION*: %@",fmt]; \
|
||||
NSLog(fmt2, ## args); }} while (0)
|
||||
|
||||
#define LOGDEEPException0(format) \
|
||||
do { if (GSDebugSet(@"exception") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*EXCEPTION*: %@",fmt]; \
|
||||
NSLog(@"%@",fmt2); }} while (0)
|
||||
|
||||
#define LOGDEEPError(format, args...) \
|
||||
do { if (GSDebugSet(@"error") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*ERROR*: %@",fmt]; \
|
||||
NSLog(fmt2, ## args);}} while (0)
|
||||
|
||||
#define LOGDEEPError0(format) \
|
||||
do { if (GSDebugSet(@"error") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*ERROR*: %@",fmt]; \
|
||||
NSLog(@"%@",fmt2); }} while (0)
|
||||
|
||||
#define NSDebugDeepMLLogCond(cond, level, format, args...) \
|
||||
do { if (cond && GSDebugSet(level) == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt, ## args); }} while (0)
|
||||
|
||||
#define NSDebugDeepMLog(format, args...) \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt, ## args); }} while (0)
|
||||
|
||||
#define NSDebugDeepMLLog(level, format, args...) \
|
||||
do { if (GSDebugSet(level) == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt, ## args); }} while (0)
|
||||
|
||||
#define NSDebugDeepMLogCond(cond, format, args...) \
|
||||
do { if (cond && GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt, ## args); }} while (0)
|
||||
|
||||
#define NSDebugDeepMLog0(format) \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define NSDebugDeepMLLog0(level,format) \
|
||||
do { if (GSDebugSet(level) == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define NSDebugDeepFLog0(format) \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg( \
|
||||
__PRETTY_FUNCTION__, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define NSDebugDeepFLLog0(level,format) \
|
||||
do { if (GSDebugSet(level) == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg( \
|
||||
__PRETTY_FUNCTION__, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#else
|
||||
#define LOGDEEPClassFnStart() {}
|
||||
#define LOGDEEPClassFnStop() {}
|
||||
#define LOGDEEPClassFnStartC(comment) {}
|
||||
#define LOGDEEPClassFnStopC(comment) {}
|
||||
#define LOGDEEPClassFnStartCond(cond) {}
|
||||
#define LOGDEEPClassFnStopCond(cond) {}
|
||||
#define LOGDEEPClassFnStartCondC(cond,comment) {}
|
||||
#define LOGDEEPClassFnStopCondC(cond,comment) {}
|
||||
#define LOGDEEPClassFnNotImplemented() {}
|
||||
#define LOGDEEPObjectFnStart() {}
|
||||
#define LOGDEEPObjectFnStop() {}
|
||||
#define LOGDEEPObjectFnStartC(comment) {}
|
||||
#define LOGDEEPObjectFnStopC(comment) {}
|
||||
#define LOGDEEPObjectFnStartCond(cond) {}
|
||||
#define LOGDEEPObjectFnStopCond(cond) {}
|
||||
#define LOGDEEPObjectFnStartCondC(cond,comment) {}
|
||||
#define LOGDEEPObjectFnStopCondC(cond,comment) {}
|
||||
#define LOGDEEPObjectFnNotImplemented() {}
|
||||
#define LOGDEEPSeriousError(format, args...) {}
|
||||
#define LOGDEEPSeriousError0(format) {}
|
||||
#define LOGDEEPError(format, args...) {}
|
||||
#define LOGDEEPError0(format) {}
|
||||
#define LOGDEEPException(format, args...) {}
|
||||
#define LOGDEEPException0(format) {}
|
||||
#define NSDebugDeepMLLog(format, args...) {}
|
||||
#define NSDebugDeepMLog(format, args...) {}
|
||||
#define NSDebugDeepMLog0(format) {}
|
||||
#define NSDebugDeepMLLog0(level,format) {}
|
||||
#define NSDebugDeepFLog0(format) {}
|
||||
#define NSDebugDeepFLLog0(level,format) {}
|
||||
#define NSDebugDeepMLLogCond(cond, level, format, args...) {}
|
||||
#define NSDebugDeepMLogCond(cond, format, args...) {}
|
||||
#endif
|
||||
|
||||
//Lock Debug
|
||||
#if defined(DEBUG) && (defined(GSWDEBUG_DEEP) || defined (GSWDEBUG_LOCK))
|
||||
#define LOGLOCKClassFnStart() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKClassFnStop() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__,__FILE__, __LINE__,@"FNSTOP"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKClassFnStartC(comment) \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGLOCKClassFnStopC(comment) \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTOP %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGLOCKClassFnStartCond(cond) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKClassFnStopCond(cond) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTOP"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKClassFnStartCondC(cond,comment) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTART %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGLOCKClassFnStopCondC(cond,comment) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"FNSTOP %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGLOCKObjectFnStart() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTART"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKObjectFnStop() \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTOP"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKObjectFnStartC(comment) \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTART %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGLOCKObjectFnStopC(comment) \
|
||||
do { if (GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTOP %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGLOCKObjectFnStartCond(cond) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTART"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKObjectFnStopCond(cond) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTOP"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKObjectFnStartCondC(cond,comment) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTART %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGLOCKObjectFnStopCondC(cond,comment) \
|
||||
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"FNSTOP %s"); \
|
||||
NSLog(fmt,comment); }} while (0)
|
||||
|
||||
#define LOGLOCKObjectFnNotImplemented() \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg(self, _cmd, __FILE__, __LINE__,@"NOT IMPLEMENTED"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKClassFnNotImplemented() \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"NOT IMPLEMENTED"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKClassFnNotImplemented() \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,@"NOT IMPLEMENTED"); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define LOGLOCKSeriousError(format, args...) \
|
||||
do { if (GSDebugSet(@"seriousError") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*SERIOUS ERROR*: %@",fmt]; \
|
||||
NSLog(fmt2, ## args); }} while (0)
|
||||
|
||||
#define LOGLOCKSeriousError0(format) \
|
||||
do { if (GSDebugSet(@"seriousError") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*SERIOUS ERROR*: %@",fmt]; \
|
||||
NSLog(@"%@",fmt2); }} while (0)
|
||||
|
||||
#define LOGLOCKException(format, args...) \
|
||||
do { if (GSDebugSet(@"exception") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*EXCEPTION*: %@",fmt]; \
|
||||
NSLog(fmt2, ## args); }} while (0)
|
||||
|
||||
#define LOGLOCKException0(format) \
|
||||
do { if (GSDebugSet(@"exception") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*EXCEPTION*: %@",fmt]; \
|
||||
NSLog(@"%@",fmt2); }} while (0)
|
||||
|
||||
#define LOGLOCKError(format, args...) \
|
||||
do { if (GSDebugSet(@"error") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*ERROR*: %@",fmt]; \
|
||||
NSLog(fmt2, ## args);}} while (0)
|
||||
|
||||
#define LOGLOCKError0(format) \
|
||||
do { if (GSDebugSet(@"error") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, __FILE__, __LINE__,format); \
|
||||
NSString *fmt2 = [NSString stringWithFormat:@"*ERROR*: %@",fmt]; \
|
||||
NSLog(@"%@",fmt2); }} while (0)
|
||||
|
||||
#define NSDebugLockMLLogCond(cond, level, format, args...) \
|
||||
do { if (cond && GSDebugSet(level) == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt, ## args); }} while (0)
|
||||
|
||||
#define NSDebugLockMLLog(level, format, args...) \
|
||||
do { if (GSDebugSet(level) == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt, ## args); }} while (0)
|
||||
|
||||
#define NSDebugLockMLogCond(cond, format, args...) \
|
||||
do { if (cond && GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt, ## args); }} while (0)
|
||||
|
||||
#define NSDebugLockMLog(format, args...) \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt, ## args); }} while (0)
|
||||
|
||||
#define NSDebugLockMLog0(format) \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define NSDebugLockMLLog0(level,format) \
|
||||
do { if (GSDebugSet(level) == YES) { \
|
||||
NSString *fmt = GSDebugMethodMsg( \
|
||||
self, _cmd, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define NSDebugLockFLog0(format) \
|
||||
do { if (GSDebugSet(@"dflt") == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg( \
|
||||
__PRETTY_FUNCTION__, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#define NSDebugLockFLLog0(level,format) \
|
||||
do { if (GSDebugSet(level) == YES) { \
|
||||
NSString *fmt = GSDebugFunctionMsg( \
|
||||
__PRETTY_FUNCTION__, __FILE__, __LINE__, format); \
|
||||
NSLog(fmt); }} while (0)
|
||||
|
||||
#else
|
||||
#define LOGLOCKClassFnStart() {}
|
||||
#define LOGLOCKClassFnStop() {}
|
||||
#define LOGLOCKClassFnStartC(comment) {}
|
||||
#define LOGLOCKClassFnStopC(comment) {}
|
||||
#define LOGLOCKClassFnStartCond(cond) {}
|
||||
#define LOGLOCKClassFnStopCond(cond) {}
|
||||
#define LOGLOCKClassFnStartCondC(cond,comment) {}
|
||||
#define LOGLOCKClassFnStopCondC(cond,comment) {}
|
||||
#define LOGLOCKClassFnNotImplemented() {}
|
||||
#define LOGLOCKObjectFnStart() {}
|
||||
#define LOGLOCKObjectFnStop() {}
|
||||
#define LOGLOCKObjectFnStartC(comment) {}
|
||||
#define LOGLOCKObjectFnStopC(comment) {}
|
||||
#define LOGLOCKObjectFnStartCond(cond) {}
|
||||
#define LOGLOCKObjectFnStopCond(cond) {}
|
||||
#define LOGLOCKObjectFnStartCondC(cond,comment) {}
|
||||
#define LOGLOCKObjectFnStopCondC(cond,comment) {}
|
||||
#define LOGLOCKObjectFnNotImplemented() {}
|
||||
#define LOGLOCKSeriousError(format, args...) {}
|
||||
#define LOGLOCKSeriousError0(format) {}
|
||||
#define LOGLOCKError(format, args...) {}
|
||||
#define LOGLOCKError0(format) {}
|
||||
#define LOGLOCKException(format, args...) {}
|
||||
#define LOGLOCKException0(format) {}
|
||||
#define NSDebugLockMLLog(format, args...) {}
|
||||
#define NSDebugLockMLog(format, args...) {}
|
||||
#define NSDebugLockMLog0(format) {}
|
||||
#define NSDebugLockMLLog0(level,format) {}
|
||||
#define NSDebugLockFLog0(format) {}
|
||||
#define NSDebugLockFLLog0(level,format) {}
|
||||
#define NSDebugLockMLLogCond(cond, level, format, args...) {}
|
||||
#define NSDebugLockMLogCond(cond, format, args...) {}
|
||||
#endif
|
||||
|
||||
#endif // _GSWebDebug_h__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue