aboutsummaryrefslogtreecommitdiffstats
path: root/kotlinx-coroutines-core/native/src/Debug.kt
blob: f17c2ed7fcaa24e5a8b8f5e21b54e09b105ea08c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package kotlinx.coroutines

import kotlin.math.*
import kotlin.native.*

internal actual val DEBUG: Boolean = false

internal actual val Any.hexAddress: String get() = identityHashCode().toUInt().toString(16)

internal actual val Any.classSimpleName: String get() = this::class.simpleName ?: "Unknown"

internal actual inline fun assert(value: () -> Boolean) {}