Added macro for main thread assertions based on `NSAssert()`. Reworded Boolean property per Objective-C conventions.
4 lines
242 B
Objective-C
4 lines
242 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#define MGLAssertIsMainThread() NSAssert([[NSThread currentThread] isMainThread], @"-[%@ %@] must be accessed on the main thread, not %@", [self class], NSStringFromSelector(_cmd), [NSThread currentThread])
|