Fix RuntimeCheck usage (#4638)

This commit is contained in:
Alexander Shabalin
2021-01-13 16:42:34 +03:00
committed by Nikolay Krasko
parent ec62b595cb
commit 411506127c
@@ -233,7 +233,7 @@ OBJ_GETTER(Kotlin_boxDouble, KDouble value);
static void injectToRuntime() {
// If the code below fails, then it is most likely caused by KT-42254.
const char* errorMessage = "runtime injected twice; https://youtrack.jetbrains.com/issue/KT-42254 might be related";
constexpr const char* errorMessage = "runtime injected twice; https://youtrack.jetbrains.com/issue/KT-42254 might be related";
RuntimeCheck(Kotlin_ObjCExport_toKotlinSelector == nullptr, errorMessage);
Kotlin_ObjCExport_toKotlinSelector = @selector(toKotlin:);