mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
(STRVAL): Make it a macro instead of an inline function to avoid
warning. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2037 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
00f3e36143
commit
1af4190861
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* Interface for Objective C NeXT-compatible NXStringTable object
|
/* Interface for Objective C NeXT-compatible NXStringTable object
|
||||||
Copyright (C) 1993,1994 Free Software Foundation, Inc.
|
Copyright (C) 1993,1994, 1997 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by: Adam Fedor <adam@bastille.rmnug.org>
|
Written by: Adam Fedor <adam@bastille.rmnug.org>
|
||||||
|
|
||||||
|
@ -46,8 +46,12 @@
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
#if 0
|
||||||
static inline const char *STRVAL(NXStringTable *table, const char *key) {
|
static inline const char *STRVAL(NXStringTable *table, const char *key) {
|
||||||
return [table valueForStringKey:key];
|
return [table valueForStringKey:key];
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#define STRVAL(TABLE,KEY) ([TABLE valueForStringKey: KEY])
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __NXStringTable_h_INCLUDE_GNU */
|
#endif /* __NXStringTable_h_INCLUDE_GNU */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue