[K/N][Tests] Migrate dylib-interop-exe tests
^KT-61259
This commit is contained in:
committed by
Space Team
parent
83d851dd61
commit
2b2c685827
@@ -0,0 +1,21 @@
|
||||
#include <inttypes.h>
|
||||
#include <objc/NSObject.h>
|
||||
|
||||
@interface OnDestroyHook: NSObject
|
||||
-(instancetype)init:(void(^)(uintptr_t))onDestroy;
|
||||
-(uintptr_t)identity;
|
||||
@end
|
||||
|
||||
@protocol OnDestroyHook
|
||||
-(uintptr_t)identity;
|
||||
@end
|
||||
|
||||
void startApp(void(^task)());
|
||||
uint64_t currentThreadId();
|
||||
BOOL isMainThread();
|
||||
void spin();
|
||||
|
||||
OnDestroyHook* newGlobal(void(^onDestroy)(uintptr_t));
|
||||
void clearGlobal();
|
||||
|
||||
id<OnDestroyHook> newOnDestroyHook(void(^onDestroy)(uintptr_t));
|
||||
Reference in New Issue
Block a user