Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit 85e77a1

Browse files
committed
REMOVE ME: debugging
1 parent e6cbbfb commit 85e77a1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

runtime/src/main/cpp/Runtime.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,4 +352,8 @@ void Konan_Platform_setForceCheckedShutdown(KBoolean value) {
352352
g_forceCheckedShutdown = value;
353353
}
354354

355+
KInt Konan_getThingy() {
356+
return Kotlin_destroyRuntimeMode;
357+
}
358+
355359
} // extern "C"

runtime/src/main/kotlin/kotlin/native/Platform.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,14 @@ public object Platform {
100100
public var forceCheckedShutdown: Boolean
101101
get() = Platform_getForceCheckedShutdown()
102102
set(value) = Platform_setForceCheckedShutdown(value)
103+
104+
public val thingy: Int
105+
get() = getThingy()
103106
}
104107

108+
@SymbolName("Konan_getThingy")
109+
private external fun getThingy(): Int
110+
105111
@SymbolName("Konan_Platform_canAccessUnaligned")
106112
private external fun Platform_canAccessUnaligned(): Int
107113

0 commit comments

Comments
 (0)