ObjFW  Check-in [d690b3e135]

Overview
Comment:runtime.h: Properly check for __has_feature.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d690b3e1357e043927b11f6a4a90b4d7d36183b9d2f20fbca9f9640a2399e94f
User & Date: js on 2012-08-04 00:50:38
Other Links: manifest | tags
Context
2012-08-04
00:51
Add -[OFArray arrayByRemovingObject:]. check-in: 96bbfb777c user: js tags: trunk
00:50
runtime.h: Properly check for __has_feature. check-in: d690b3e135 user: js tags: trunk
00:41
ForwardingTests: Minor type encoding fix. check-in: 730b2cbdf6 user: js tags: trunk
Changes

Modified src/runtime/runtime.h from [da40cdf48e] to [1dc0fb3f7f].

14
15
16
17
18
19
20




21
22
23
24
25
26
27
28
 * file.
 */

#ifndef __OBJFW_RUNTIME_H__
#define __OBJFW_RUNTIME_H__
#include <stdint.h>





#if defined(__has_feature) && __has_feature(objc_arc)
# define OBJC_BRIDGE __bridge
#else
# define OBJC_BRIDGE
#endif

typedef struct objc_class *Class;
typedef struct objc_object *id;







>
>
>
>
|







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 * file.
 */

#ifndef __OBJFW_RUNTIME_H__
#define __OBJFW_RUNTIME_H__
#include <stdint.h>

#ifndef __has_feature
# define __has_feature(x) 0
#endif

#if __has_feature(objc_arc)
# define OBJC_BRIDGE __bridge
#else
# define OBJC_BRIDGE
#endif

typedef struct objc_class *Class;
typedef struct objc_object *id;