ObjFW  Check-in [e571ecccc0]

Overview
Comment:Use __objc_yes and __objc_no if available.

This way, @YES and @NO work.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e571ecccc00fdee132a3218ec2d11346b80593e5ed69156f3f5505ef1269c1be
User & Date: js on 2012-04-21 10:30:01
Other Links: manifest | tags
Context
2012-04-21
11:02
Fix __has_feature check. check-in: 66db4586f7 user: js tags: trunk
10:35
Merge branch 'master' into runtime check-in: e5d2a616de user: js tags: runtime
10:30
Use __objc_yes and __objc_no if available. check-in: e571ecccc0 user: js tags: trunk
10:15
Add support for number literals and boxing. check-in: 048e3eec4b user: js tags: trunk
Changes

Modified src/OFObject.h from [9620b63ed6] to [5bb4fe2eb8].

28
29
30
31
32
33
34







35
36
37
38
39
40
41
#include <limits.h>

#ifdef OF_OBJFW_RUNTIME
# import <objfw-rt.h>
#else
# import <objc/objc.h>
#endif








#define OF_RETAIN_COUNT_MAX UINT_MAX
#define OF_INVALID_INDEX SIZE_MAX

/**
 * \brief A result of a comparison.
 */







>
>
>
>
>
>
>







28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <limits.h>

#ifdef OF_OBJFW_RUNTIME
# import <objfw-rt.h>
#else
# import <objc/objc.h>
#endif

#if defined(__has_feature) && __has_feature(objc_bool)
# undef YES
# define YES __objc_yes
# undef NO
# define NO __objc_no
#endif

#define OF_RETAIN_COUNT_MAX UINT_MAX
#define OF_INVALID_INDEX SIZE_MAX

/**
 * \brief A result of a comparison.
 */