[K/N] Use ptr-sized types in objc_firendly_dealloc tests
Merge-request: KT-MR-11525 Merged-by: Alexey Glushko <aleksei.glushko@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
0072189fb1
commit
0a09d1e140
+1
-1
@@ -20,7 +20,7 @@ import kotlinx.cinterop.*
|
||||
|
||||
val timeout = 10.seconds
|
||||
|
||||
fun allocCollectable(ctor: () -> ULong): ULong = autoreleasepool {
|
||||
fun <T> allocCollectable(ctor: () -> T): T = autoreleasepool {
|
||||
ctor()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
language = Objective-C
|
||||
headerFilter = **/objclib.h
|
||||
linkerOpts = -lobjc_autorelease_from_dealloc
|
||||
linkerOpts = -lobjc_friendly_dealloc
|
||||
+3
-3
@@ -6,6 +6,6 @@
|
||||
-(uintptr_t)identity;
|
||||
@end
|
||||
|
||||
void retain(uint64_t);
|
||||
void release(uint64_t);
|
||||
void autorelease(uint64_t);
|
||||
void retain(uintptr_t);
|
||||
void release(uintptr_t);
|
||||
void autorelease(uintptr_t);
|
||||
+3
-3
@@ -23,14 +23,14 @@
|
||||
|
||||
@end
|
||||
|
||||
void retain(uint64_t obj) {
|
||||
void retain(uintptr_t obj) {
|
||||
[((id) obj) retain];
|
||||
}
|
||||
|
||||
void release(uint64_t obj) {
|
||||
void release(uintptr_t obj) {
|
||||
[((id) obj) release];
|
||||
}
|
||||
|
||||
void autorelease(uint64_t obj) {
|
||||
void autorelease(uintptr_t obj) {
|
||||
[((id) obj) autorelease];
|
||||
}
|
||||
Reference in New Issue
Block a user