• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3  */
4 
5 package kotlinx.coroutines
6 
7 import kotlin.math.*
8 
9 internal actual val DEBUG: Boolean = false
10 
<lambda>null11 internal actual val Any.hexAddress: String get() = abs(id().let { if (it == Int.MIN_VALUE) 0 else it }).toString(16)
12 
13 internal actual val Any.classSimpleName: String get() = this::class.simpleName ?: "Unknown"
14 
15 @SymbolName("Kotlin_Any_hashCode")
idnull16 public external fun Any.id(): Int // Note: can return negative value on K/N
17 
18 internal actual inline fun assert(value: () -> Boolean) {}
19