ObjFW  Check-in [c875400bbf]

Overview
Comment:Use __VA_ARGS__ for Block_copy.

This solves a corner case where the preprocessor would complain
otherwise.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c875400bbf3aafaaea919a2ef68ae06e2deab3b754c4f017700058335836c684
User & Date: js on 2013-02-17 13:36:26
Other Links: manifest | tags
Context
2013-02-18
10:38
Add -[OFDataArray initWithItemSize:capacity:]. check-in: e403ca05cb user: js tags: trunk
2013-02-17
13:36
Use __VA_ARGS__ for Block_copy. check-in: c875400bbf user: js tags: trunk
10:14
Remove -Wno-deprecated-objc-isa-usage. check-in: 2347371351 user: js tags: trunk
Changes

Modified src/block.h from [ff3d49827f] to [9c6a803607].

38
39
40
41
42
43
44
45

46
47
48
49
extern void* _Block_copy(const void*);
extern void _Block_release(const void*);
#ifdef __cplusplus
}
#endif

#ifndef Block_copy
# define Block_copy(x) ((__typeof__(x))_Block_copy((const void*)(x)))

#endif
#ifndef Block_release
# define Block_release(x) _Block_release((const void*)(x))
#endif







|
>


|

38
39
40
41
42
43
44
45
46
47
48
49
50
extern void* _Block_copy(const void*);
extern void _Block_release(const void*);
#ifdef __cplusplus
}
#endif

#ifndef Block_copy
# define Block_copy(...) \
	((__typeof__(__VA_ARGS__))_Block_copy((const void*)(__VA_ARGS__)))
#endif
#ifndef Block_release
# define Block_release(...) _Block_release((const void*)(__VA_ARGS__))
#endif