mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
87093844e0
commit
5b06ca2b78
3 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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) { \
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "config.h"
|
||||
#include "GNUstepBase/preface.h"
|
||||
#include "GNUstepBase/GSFunctions.h"
|
||||
#include "GNUstepBase/GSCategories.h"
|
||||
#include "Foundation/Foundation.h"
|
||||
|
||||
NSString *
|
||||
|
|
Loading…
Reference in a new issue