mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
provide gcc-style var-arg macros
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29710 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
01e196ea33
commit
6c01a9f968
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-02-23 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Source/ObjectiveC2/runtime.h: provide gcc-style macros
|
||||
|
||||
2010-02-23 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSNumber.m: Autorelease the values returned by the
|
||||
|
|
|
@ -270,9 +270,19 @@ static const id self = nil;
|
|||
|
||||
#endif
|
||||
|
||||
#if (GCC_VERSION >= 3000)
|
||||
|
||||
#define objc_msgSend(theReceiver, theSelector, ...) objc_msg_lookup(theReceiver, theSelector)(theReceiver, theSelector, ## __VA_ARGS__)
|
||||
#define objc_msgSendSuper(super, op, ...) objc_msg_lookup_super(super, op)(super->receiver, op, ## __VA_ARGS__)
|
||||
|
||||
#else /* GCC_VERSION >= 3000 */
|
||||
|
||||
#define objc_msgSend(theReceiver, theSelector, args...) objc_msg_lookup(theReceiver, theSelector)(theReceiver, theSelector, args)
|
||||
#define objc_msgSendSuper(super, op, args...) objc_msg_lookup_super(super, op)(super->receiver, op, args)
|
||||
|
||||
#endif /* GCC_VERSION >= 3000 */
|
||||
|
||||
|
||||
const char *sel_getName(SEL sel);
|
||||
|
||||
SEL sel_getUid(const char *selName);
|
||||
|
|
Loading…
Reference in a new issue