Include GSOnce macros so the baseadd library can see them.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24087 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2006-11-14 15:43:19 +00:00
parent 87093844e0
commit 5b06ca2b78
3 changed files with 20 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-11-14 Adam Fedor <fedor@gnu.org>
* Headers/Additions/GNUstepBase/GSCategories.h: Add GSOnce macros.
* Source/Additions/GSFunctions.m: Add GSCategories.h
2006-11-13 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSCalendarDate.m: Fix a few string parsing errors (check that

View file

@ -110,6 +110,20 @@ extern "C" {
#define NSDebugMLog(format, args...)
#endif /* DEBUG */
#define GSOnceFLog(format, args...) \
do { static BOOL beenHere = NO; if (beenHere == NO) {\
NSString *fmt = GSDebugFunctionMsg( \
__PRETTY_FUNCTION__, __FILE__, __LINE__, format); \
beenHere = YES; \
NSLog(fmt , ## args); }} while (0)
#define GSOnceMLog(format, args...) \
do { static BOOL beenHere = NO; if (beenHere == NO) {\
NSString *fmt = GSDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, format); \
beenHere = YES; \
NSLog(fmt , ## args); }} while (0)
#ifdef GSWARN
#define NSWarnLog(format, args...) \
do { if (GSDebugSet(@"NoWarn") == NO) { \

View file

@ -28,6 +28,7 @@
#include "config.h"
#include "GNUstepBase/preface.h"
#include "GNUstepBase/GSFunctions.h"
#include "GNUstepBase/GSCategories.h"
#include "Foundation/Foundation.h"
NSString *