mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +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
44f3772513
commit
74f3b0ec71
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>
|
2006-11-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSCalendarDate.m: Fix a few string parsing errors (check that
|
* Source/NSCalendarDate.m: Fix a few string parsing errors (check that
|
||||||
|
|
|
@ -110,6 +110,20 @@ extern "C" {
|
||||||
#define NSDebugMLog(format, args...)
|
#define NSDebugMLog(format, args...)
|
||||||
#endif /* DEBUG */
|
#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
|
#ifdef GSWARN
|
||||||
#define NSWarnLog(format, args...) \
|
#define NSWarnLog(format, args...) \
|
||||||
do { if (GSDebugSet(@"NoWarn") == NO) { \
|
do { if (GSDebugSet(@"NoWarn") == NO) { \
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "GNUstepBase/preface.h"
|
#include "GNUstepBase/preface.h"
|
||||||
#include "GNUstepBase/GSFunctions.h"
|
#include "GNUstepBase/GSFunctions.h"
|
||||||
|
#include "GNUstepBase/GSCategories.h"
|
||||||
#include "Foundation/Foundation.h"
|
#include "Foundation/Foundation.h"
|
||||||
|
|
||||||
NSString *
|
NSString *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue