DebugUtils

object DebugUtils

Utility functions for debug build checks.

Since

0.4.0

Properties

Link copied to clipboard

Whether the current build is a debug build.

Functions

Link copied to clipboard
inline fun <T> debugOnly(block: () -> T): T?

Execute block only in debug builds.

Link copied to clipboard
inline fun <T> debugOrElse(fallback: T, block: () -> T): T

Execute block only in debug builds, with fallback.

Link copied to clipboard

Throws if not in a debug build.