libs-gsweb/GSWeb.framework/GSWDebug.h
Dave Wetzel 0c43a77fd2 * GSWExtensionsGSW.framework/GSWFileUploadComponent.m
* GSWExtensionsGSW.framework/GSWLogin.m
	removed logs
	* GSWExtensionsGSW.framework/GNUmakefile
	added ADDITIONAL_OBJCFLAGS = -Werror-implicit-function-declaration
	* GSWExtensionsGSW.framework/GSWCacheElement.m
	removed logs, use object_getClassName
	* GSWExtensionsGSW.framework/GSWValidationFailureComponent.m
	* GSWExtensionsGSW.framework/GSWTabComponent.m
	* GSWExtensionsGSW.framework/GSWFileUploadFormComponent.m
	* GSWExtensionsGSW.framework/GSWSimpleFormComponent.m
	* GSWeb.framework/GSWApplication.m
	removed logs, _validateAPI
	ClassIsKindOfClass -> GSObjCIsKindOf
	* GSWeb.framework/GSWAction.m
	include <GNUstepBase/NSObject+GNUstepBase.h>
	removed logs and unused (commented) code
	* GSWeb.framework/GSWResourceManager.h
	removed _validateAPI
	* GSWeb.framework/GSWImageButton.m
	added #include <GNUstepBase/NSObject+GNUstepBase.h>
	removed logs and unused (commented) code
	* GSWeb.framework/NSString+HTML.h
	changed int to NSUInteger / NSInteger
	* GSWeb.framework/GSWResourceManager.m
	removed logs, _validateAPI
	* GSWeb.framework/GSWContext.m 
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWRequestHandler.m
	include <GNUstepBase/NSObject+GNUstepBase.h>
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/NSString+HTML.m
	include <GNUstepBase/NSString+GNUstepBase.h>
	changed int to NSUInteger
	use memmove in GSWMemMove macro
	disabled testStringByConvertingHTML
	removed logs
	fixed warnings
	* GSWeb.framework/GSWMultiKeyDictionary.m
	removed logs
	* GSWeb.framework/GSWVBScript.m
	removed logs
	* GSWeb.framework/NSNonBlockingFileHandle.m
	removed logs
	* GSWeb.framework/GSWStatisticsStore.h
	removed useless @interface / @end for the same class
	* GSWeb.framework/GSWLifebeatThread.m
	removed include <GNUstepBase/GSCategories.h>
	removed logs
	* GSWeb.framework/GSWStatisticsStore.m
	removed logs
	include <GNUstepBase/NSObject+GNUstepBase.h>
	include <GNUstepBase/NSString+GNUstepBase.h>
	implement _purgePathsStatistics, _updatePathsStatisticsWithPaths
	removed useless @implementation / @end for the same class
	* GSWeb.framework/GSWCookie.m
	removed logs
	* GSWeb.framework/GNUmakefile
	added ADDITIONAL_OBJCFLAGS = -Werror-implicit-function-declaration
	* GSWeb.framework/GSWRecording.m
	removed logs
	* GSWeb.framework/GSWToggle.m
	removed logs
	* GSWeb.framework/GSWMessage.m
	include <GNUstepBase/NSObject+GNUstepBase.h>
	globalDefaultEncoding = [NSString defaultCStringEncoding];
	(see http://wiki.gnustep.org/index.php/GSWebFAQ )
	use NSUInteger for index
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWDefaultAdaptor.m
	include <GNUstepBase/NSObject+GNUstepBase.h>
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWJavaScript.m
	* GSWeb.framework/GSWClientSideScript.m
	removed logs
	* GSWeb.framework/GSWNestedList.m
	removed logs
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWEmbeddedObject.m	
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWRequest.h
	removed _validateAPI
	* GSWeb.framework/GSWRequest.m
	add includes
	removed _validateAPI
	removed logs
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWUtils.h
	unsigned int -> NSUInteger
	* GSWeb.framework/Resources/languages.plist
	added languages
	* GSWeb.framework/GSWUtils.m
	add includes
	unsigned int -> NSUInteger
	removed logs
	* GSWeb.framework/GSWComponentReference.m	
	removed logs
	* GSWeb.framework/GSWGeometricRegion.m
	add includes
	removed logs
	* GSWeb.framework/GSWKeyValueAssociation.m
	add includes
	removed logs
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWHiddenField.m
	removed logs
	* GSWeb.framework/GSWParam.m
	add includes
	removed logs
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/NSString+Trimming.h
	* GSWeb.framework/NSString+Trimming.m
	removed longValue, ulongValue, longLongValue;
	removed logs
	* GSWeb.framework/GSWStaticResourceRequestHandler.m
	removed logs
	* GSWeb.framework/GSWURLValuedElementData.m
	removed logs
	* GSWeb.framework/GSWDirectAction.m
	takeValue -> setValue
	removed logs
	int -> NSUInteger
	* GSWeb.framework/GSWComponentDefinition.m
	add includes
	removed logs
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWAssociation.m
	add includes
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	removed logs
	* GSWeb.framework/GSWSession.h
	* GSWeb.framework/GSWSession.m
	unsigned int-> NSUInteger
	add includes
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	removed logs
	David Ayers: pls check sleepInContext!
	removed _validateAPI, __setContextCounterIncrementingEnabled, __counterIncrementingEnabledFlag
	* GSWeb.framework/GSWFileUpload.m
	removed logs
	* GSWeb.framework/GSWApplet.m
	add includes
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWGenericElement.m
	removed logs
	GSWeb.framework/GSWTemplateParser.m
	add includes
	* GSWeb.framework/GSWTemporaryElement.m		
	removed logs
	* GSWeb.framework/GSWResponse.m
	add include
	removed docStructure checks
	removed logs
	* GSWeb.framework/GSWProjectBundle.m
	add include
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	removed logs
	* GSWeb.framework/GSWWorkerThread.m
	added - drain
	removed NSLog
	* GSWeb.framework/GSWApplication+Defaults.m
	add include			
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	removed logs
	* GSWeb.framework/GSWActiveImage.m
	* GSWeb.framework/GSWDirectActionRequestHandler.m
	* GSWeb.framework/GSWConstantValueAssociation.m
	* GSWeb.framework/NSData+Compress.m
	removed logs
	* GSWeb.framework/GSWHTMLStaticElement.m	
	add includes
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	removed logs
	* GSWeb.framework/GSWServerSessionStore.m
	removed logs
	* GSWeb.framework/GSWAdaptor.m
	add includes
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWDeployedBundle.m
	removed logs
	add includes
	* GSWeb.framework/GSWSubmitButton.m
	removed logs
	* GSWeb.framework/GSWDeclarationParser.m
	add includes
	removed logs
	* GSWeb.framework/GSWBundle.m
	add includes
	removed logs
	clearCache
	* GSWeb.framework/GSWWOCompatibility.h
	fixed typo in WOMessage
	* GSWeb.framework/GSWSessionTimeOut.m
	removed logs
	* GSWeb.framework/GSWPopUpButton.m	
	add includes
	* GSWeb.framework/GSWComponent.m
	add includes
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWHTTPIO.m
	add include
	* GSWeb.framework/GSWBindingNameAssociation.m
	takeValue -> setValue
	* GSWeb.framework/GSWHTMLTemplateParser.m
	removed logs
	* GSWeb.framework/GSWResetButton.m
	removed logs
	* GSWeb.framework/GSWDebug.h/m
	disabled log funtions
	* GSWeb.framework/GSWActionRequestHandler.m
	add includes
	removed logs
	* GSWeb.framework/GSWSwitchComponent.m
	* GSWeb.framework/GSWSessionTimeOutManager.m
	removed logs
	* GSWeb.framework/GSWMailDelivery.m
	add includes
	removed logs
	* GSWeb.framework/GSWDynamicURLString.h
	* GSWeb.framework/GSWDynamicURLString.m
	unsigned int -> NSUInteger
	removed checkURL
	add includes
	* GSWeb.framework/GSWProcFS.m		
	removed logs
	* GSWeb.framework/GSWApplication.h
	removed _validateAPI
	* GSWeb.framework/GSWResourceRequestHandler.m
	add include
	removed logs
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	* GSWeb.framework/GSWSessionStore.h
	removed _validateAPI
	* GSWeb.framework/GSWSessionStore.m
	add include
	removed _validateAPI
	removed logs
	* GSWExtensions.framework/GSWLongResponsePage.m
	* GSWExtensions.framework/GSWExceptionPage.m
	* GSWExtensions.framework/GSWMetaRefresh.m
	* GSWExtensions.framework/GSWCollapsibleComponentContent.m
	removed logs
	* GSWExtensions.framework/GNUmakefile
	added ADDITIONAL_OBJCFLAGS = -Werror-implicit-function-declaration
	* GSWExtensions.framework/GSWStatsPage.m
	removed logs
	unsigned int -> NSUInteger
	* Examples/hello/HelloPage.wo/HelloPage.html
	* Examples/hello/Main.wo/Main.html
	* Examples/hello/Hello.m
	convert to UTF8
	
	The change of
	LOGObjectFnNotImplemented(); -> [self notImplemented: _cmd];
	will show where we need to implement functionality.
	Please send bug reports! -- dw



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@30584 72102866-910b-0410-8b05-ffd578937521
2010-06-05 21:08:12 +00:00

812 lines
30 KiB
C

/** debug.h - debug
Copyright (C) 1999-2002 Free Software Foundation, Inc.
Written by: Manuel Guesdon <mguesdon@orange-concept.com>
Date: Jan 1999
This file is part of the GNUstep Web Library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
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$
#ifndef _GSWebDebug_h__
#define _GSWebDebug_h__
#if 0 // If somebody needs this please send patches to make it work
#ifdef DEBUG
GSWEB_EXPORT NSString *
GSWDebugMethodMsg(id obj, SEL sel, const char *file, int line, NSString *fmt);
GSWEB_EXPORT void
GSWLogC_(CONST char* file,int line,CONST char* string);
GSWEB_EXPORT void
GSWLogDumpObjectFn(CONST char* file,int line,id object,int deep);
GSWEB_EXPORT void
GSWLogAssertGoodFn(CONST char* file,int line,id object);
#endif
#ifdef GSWDEBUG
#define GSWLogC(cString); \
GSWLogC_(__FILE__, __LINE__, cString);
#define GSWLogDumpObject(object, deep); \
GSWLogDumpObjectFn(__FILE__, __LINE__, object, deep);
#define GSWLogAssertGood(object); \
GSWLogAssertGoodFn(__FILE__, __LINE__, object);
//Log Memory Alloc/Dealloc
#ifdef GSWDEBUG_MEM
#define GSWLogMemC(cString); \
GSWLogC_(__FILE__,__LINE__,cString);
#define GSWLogMemCF(format, args...); \
{ fprintf(stderr,"File %s: %d. ",file,line); \
fprintf(stderr,format, ## args); };
#else
#define GSWLogMemC(cString);
#define GSWLogMemCF(format, args...);
#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 // no GSWDEBUG
#define GSWLogC(cString); {}
#define GSWLogDumpObject(object,deep); {}
#define GSWLogAssertGood(object); {}
#define GSWLogMemC(cString); {}
#define GSWLogMemCF(cString, args...); {}
#define GSWLogLockC(cString); {}
#define GSWLogDeepC(cString); {}
#endif
// Normal Debug
#ifdef GSWDEBUG
#define LOGClassFnStart() \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, @"FNSTART"); \
NSLog(fmt); }} while (0)
#define LOGClassFnStop() \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, @"FNSTOP"); \
NSLog(fmt); }} while (0)
#define LOGClassFnStartC(comment) \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, @"FNSTART %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGClassFnStopC(comment) \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, @"FNSTOP %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGClassFnStartCond(cond) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, @"FNSTART"); \
NSLog(fmt); }} while (0)
#define LOGClassFnStopCond(cond) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, @"FNSTOP"); \
NSLog(fmt); }} while (0)
#define LOGClassFnStartCondC(cond,comment) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, @"FNSTART %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGClassFnStopCondC(cond,comment) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, @"FNSTOP %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGObjectFnStart() \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART"); \
NSLog(fmt); }} while (0)
#define LOGObjectFnStop() \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP"); \
NSLog(fmt); }} while (0)
#define LOGObjectFnStartC(comment) \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGObjectFnStopC(comment) \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGObjectFnStartCond(cond) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART"); \
NSLog(fmt); }} while (0)
#define LOGObjectFnStopCond(cond) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP"); \
NSLog(fmt); }} while (0)
#define LOGObjectFnStartCondC(cond,comment) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGObjectFnStopCondC(cond,comment) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGObjectFnNotImplemented() \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, \
@"NOT IMPLEMENTED"); \
NSLog(fmt); }} while (0)
#define LOGClassFnNotImplemented() \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, \
@"NOT IMPLEMENTED"); \
NSLog(fmt); }} while (0)
#define LOGClassFnNotImplemented() \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSDebugFunctionMsg(__PRETTY_FUNCTION__, \
__FILE__, __LINE__, \
@"NOT IMPLEMENTED"); \
NSLog(fmt); }} while (0)
#define LOGSeriousError(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 LOGSeriousError0(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 LOGException(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 LOGException0(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 LOGError(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 LOGError0(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 NSDebugMLLogCond(cond, level, format, args...) \
do { if (cond && GSDebugSet(level) == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugMLogCond(cond, format, args...) \
do { if (cond && GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugMLog0(format) \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt); }} while (0)
#define NSDebugMLLog0(level,format) \
do { if (GSDebugSet(level) == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt); }} while (0)
#define NSDebugFLog0(format) \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSDebugFunctionMsg( \
__PRETTY_FUNCTION__, __FILE__, __LINE__, format); \
NSLog(fmt); }} while (0)
#define NSDebugFLLog0(level,format) \
do { if (GSDebugSet(level) == YES) { \
NSString *fmt = GSDebugFunctionMsg( \
__PRETTY_FUNCTION__, __FILE__, __LINE__, format); \
NSLog(fmt); }} while (0)
#else // no GSWDEBUG
#define LOGClassFnStart() {}
#define LOGClassFnStop() {}
#define LOGClassFnStartC(comment) {}
#define LOGClassFnStopC(comment) {}
#define LOGClassFnStartCond(cond) {}
#define LOGClassFnStopCond(cond) {}
#define LOGClassFnStartCondC(cond,comment) {}
#define LOGClassFnStopCondC(cond,comment) {}
#define LOGClassFnNotImplemented() {}
#define LOGObjectFnStart() {}
#define LOGObjectFnStop() {}
#define LOGObjectFnStartC(comment) {}
#define LOGObjectFnStopC(comment) {}
#define LOGObjectFnStartCond(cond) {}
#define LOGObjectFnStopCond(cond) {}
#define LOGObjectFnStartCondC(cond,comment) {}
#define LOGObjectFnStopCondC(cond,comment) {}
#define LOGObjectFnNotImplemented() {}
#define LOGSeriousError(format, args...) {}
#define LOGSeriousError0(format) {}
#define LOGError(format, args...) {}
#define LOGError0(format) {}
#define LOGException(format, args...) {}
#define LOGException0(format) {}
#define NSDebugMLog0(format) {}
#define NSDebugMLLog0(level,format) {}
#define NSDebugFLog0(format) {}
#define NSDebugFLLog0(level,format) {}
#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 = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART"); \
NSLog(fmt); }} while (0)
#define LOGDEEPObjectFnStop() \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP"); \
NSLog(fmt); }} while (0)
#define LOGDEEPObjectFnStartC(comment) \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGDEEPObjectFnStopC(comment) \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGDEEPObjectFnStartCond(cond) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART"); \
NSLog(fmt); }} while (0)
#define LOGDEEPObjectFnStopCond(cond) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP"); \
NSLog(fmt); }} while (0)
#define LOGDEEPObjectFnStartCondC(cond,comment) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGDEEPObjectFnStopCondC(cond,comment) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGDEEPObjectFnNotImplemented() \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg(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 = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugDeepMLog(format, args...) \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugDeepMLLog(level, format, args...) \
do { if (GSDebugSet(level) == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugDeepMLogCond(cond, format, args...) \
do { if (cond && GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugDeepMLog0(format) \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt); }} while (0)
#define NSDebugDeepMLLog0(level,format) \
do { if (GSDebugSet(level) == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
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 = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART"); \
NSLog(fmt); }} while (0)
#define LOGLOCKObjectFnStop() \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP"); \
NSLog(fmt); }} while (0)
#define LOGLOCKObjectFnStartC(comment) \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGLOCKObjectFnStopC(comment) \
do { if (GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGLOCKObjectFnStartCond(cond) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART"); \
NSLog(fmt); }} while (0)
#define LOGLOCKObjectFnStopCond(cond) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP"); \
NSLog(fmt); }} while (0)
#define LOGLOCKObjectFnStartCondC(cond,comment) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTART %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGLOCKObjectFnStopCondC(cond,comment) \
do { if (cond && GSDebugSet(@"GSWebFn") == YES) { \
NSString *fmt = GSWDebugMethodMsg(self, _cmd, \
__FILE__, __LINE__, @"FNSTOP %s"); \
NSLog(fmt,comment); }} while (0)
#define LOGLOCKObjectFnNotImplemented() \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg(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 = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugLockMLLog(level, format, args...) \
do { if (GSDebugSet(level) == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugLockMLogCond(cond, format, args...) \
do { if (cond && GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugLockMLog(format, args...) \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt, ## args); }} while (0)
#define NSDebugLockMLog0(format) \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
NSLog(fmt); }} while (0)
#define NSDebugLockMLLog0(level,format) \
do { if (GSDebugSet(level) == YES) { \
NSString *fmt = GSWDebugMethodMsg( \
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 // 0
#endif // _GSWebDebug_h__