ObjFW  Check-in [c95c52fe98]

Overview
Comment:Work around struct objc_class marked unavailable
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c95c52fe98215878631259dac8c22022a5bea7971c04c7d9be176293c6b39fee
User & Date: js on 2019-11-26 21:57:06
Other Links: manifest | tags
Context
2019-12-08
21:51
runtime: Make methods opaque and provide an API check-in: f310bcc3ff user: js tags: trunk
2019-11-26
21:57
Work around struct objc_class marked unavailable check-in: c95c52fe98 user: js tags: trunk
2019-11-25
01:48
.travis.yml: Add more Xcode versions for macOS check-in: 491f76c532 user: js tags: trunk
Changes

Modified tests/OFBlockTests.m from [44397683bc] to [62a88e7629].

17
18
19
20
21
22
23

24
25
26





27
28
29
30
31
32
33

#include "config.h"

#import "TestsAppDelegate.h"

static OFString *module = @"OFBlock";


extern struct objc_class _NSConcreteStackBlock;
extern struct objc_class _NSConcreteGlobalBlock;
extern struct objc_class _NSConcreteMallocBlock;






static void (^g)(void) = ^ {};

static int
(^returnStackBlock(void))(void)
{
	__block int i = 42;







>



>
>
>
>
>







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

#include "config.h"

#import "TestsAppDelegate.h"

static OFString *module = @"OFBlock";

#if defined(OF_OBJFW_RUNTIME)
extern struct objc_class _NSConcreteStackBlock;
extern struct objc_class _NSConcreteGlobalBlock;
extern struct objc_class _NSConcreteMallocBlock;
#elif defined(OF_APPLE_RUNTIME)
extern void *_NSConcreteStackBlock;
extern void *_NSConcreteGlobalBlock;
extern void *_NSConcreteMallocBlock;
#endif

static void (^g)(void) = ^ {};

static int
(^returnStackBlock(void))(void)
{
	__block int i = 42;