25 lines
613 B
Objective-C
25 lines
613 B
Objective-C
//
|
|
// DCUniDefine.h
|
|
// UniCoreSDK
|
|
//
|
|
// Created by DCloud on 2020/9/30.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#define UNI_EXPORT_METHOD(method) UNI_EXPORT_METHOD_INTERNAL(method,wx_export_method_)
|
|
|
|
#define UNI_EXPORT_METHOD_SYNC(method) UNI_EXPORT_METHOD_INTERNAL(method,wx_export_method_sync_)
|
|
|
|
#define UNI_EXPORT_METHOD_INTERNAL(method, token) \
|
|
+ (NSString *)UNI_CONCAT_WRAPPER(token, __LINE__) { \
|
|
return NSStringFromSelector(method); \
|
|
}
|
|
|
|
#define UNI_CONCAT_WRAPPER(a, b) UNI_CONCAT(a, b)
|
|
|
|
#define UNI_CONCAT(a, b) a ## b
|
|
|
|
|
|
typedef void (^UniModuleKeepAliveCallback)(id result, BOOL keepAlive);
|