add: injectGlobalJSObject

This commit is contained in:
Insomnia
2019-11-01 00:13:50 +08:00
parent 896e9aaa51
commit af3590b0ba
3 changed files with 34 additions and 6 deletions

View File

@@ -27,3 +27,11 @@ void DoricLog(NSString *_Nonnull format, ...);
UIColor *_Nonnull DoricColor(NSNumber *_Nonnull number);
NSBundle *DoricBundle();
#ifndef DC_LOCK
#define DC_LOCK(lock) dispatch_semaphore_wait(lock, DISPATCH_TIME_FOREVER);
#endif
#ifndef DC_UNLOCK
#define DC_UNLOCK(lock) dispatch_semaphore_signal(lock);
#endif