blob: 71737c2cf9015428c07d6c535acfc62cbf43f14a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#import "MGLFoundation.h"
#include <mbgl/util/run_loop.hpp>
void MGLInitializeRunLoop();
/* Using a compound statement (GNU Extension, supported by clang) */
#define MGL_OBJC_DYNAMIC_CAST(object, type) \
({ \
__typeof__( object ) temp##__LINE__ = (object); \
(type *)([temp##__LINE__ isKindOfClass:[type class]] ? temp##__LINE__ : nil); \
})
|