ObjFW  Check-in [745d514023]

Overview
Comment:OFObject: Change one #else to #elif
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 745d5140237da46ce36b8faa14ff8b96d104ca64f099432452d3a574cb27a994
User & Date: js on 2018-06-09 16:30:59
Other Links: manifest | tags
Context
2018-06-10
12:29
OFLHAArchive: Skip compressed entries much faster check-in: 2e354552ad user: js tags: trunk
2018-06-09
16:30
OFObject: Change one #else to #elif check-in: 745d514023 user: js tags: trunk
14:36
OFInflate64Stream: Don't subclass OFInflateStream check-in: 1b5d3ac8af user: js tags: trunk
Changes

Modified src/OFObject.m from [aff4f94d44] to [f0155ad158].

101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
uint32_t of_hash_seed;

static const char *
typeEncodingForSelector(Class class, SEL selector)
{
#if defined(OF_OBJFW_RUNTIME)
	return class_getMethodTypeEncoding(class, selector);
#else
	Method m;

	if ((m = class_getInstanceMethod(class, selector)) == NULL)
		return NULL;

	return method_getTypeEncoding(m);
#endif







|







101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
uint32_t of_hash_seed;

static const char *
typeEncodingForSelector(Class class, SEL selector)
{
#if defined(OF_OBJFW_RUNTIME)
	return class_getMethodTypeEncoding(class, selector);
#elif defined(OF_APPLE_RUNTIME)
	Method m;

	if ((m = class_getInstanceMethod(class, selector)) == NULL)
		return NULL;

	return method_getTypeEncoding(m);
#endif