mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +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
55bfffc819
commit
ea4ac8b515
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* 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>
|
||||
|
||||
|
@ -46,8 +46,12 @@
|
|||
|
||||
@end
|
||||
|
||||
#if 0
|
||||
static inline const char *STRVAL(NXStringTable *table, const char *key) {
|
||||
return [table valueForStringKey:key];
|
||||
}
|
||||
#else
|
||||
#define STRVAL(TABLE,KEY) ([TABLE valueForStringKey: KEY])
|
||||
#endif
|
||||
|
||||
#endif /* __NXStringTable_h_INCLUDE_GNU */
|
||||
|
|
Loading…
Reference in a new issue