mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add NS_DESIGNATED_INITIALIZER macro
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39986 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
769ce88f43
commit
4b9f685eb9
3 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2016-07-12 Niels Grewe <niels.grewe@halbordnung.de>
|
||||
|
||||
* Headers/Foundation/NSObjCRuntime.h
|
||||
* Headers/GNUstepBase/GNUstep.h:
|
||||
|
||||
Add NS_DESIGNATED_INITIALIZER macro
|
||||
|
||||
2016-07-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSICUString.m (UTextNSStringAccess):
|
||||
|
|
|
@ -181,6 +181,15 @@ extern "C" {
|
|||
#endif
|
||||
#define GS_GENERIC_TYPE(typeRef) GS_GENERIC_TYPE_F(typeRef, id)
|
||||
|
||||
/**
|
||||
* Backwards compatibility macro for the objc_designated_initializer attribute
|
||||
*/
|
||||
#if __has_attribute(objc_designated_initializer)
|
||||
# define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
#else
|
||||
# define NS_DESIGNATED_INITIALIZER
|
||||
#endif
|
||||
|
||||
/** Bitfield used to specify options to control enumeration over collections.
|
||||
*/
|
||||
typedef NS_OPTIONS(NSUInteger, NSEnumerationOptions)
|
||||
|
|
|
@ -44,6 +44,14 @@
|
|||
# define __has_extension(x) __has_feature(x)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* __has_attribute is the equivalent to __has_feature and __has_extension
|
||||
* for GNU-style attributes.
|
||||
*/
|
||||
#ifndef __has_attribute
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_feature(objc_arc)
|
||||
|
||||
#ifndef RETAIN
|
||||
|
|
Loading…
Reference in a new issue