/* * Copyright 2017-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.serialization.test enum class Platform { JVM, JS, NATIVE, WASM } public expect val currentPlatform: Platform public fun isJs(): Boolean = currentPlatform == Platform.JS public fun isJvm(): Boolean = currentPlatform == Platform.JVM public fun isNative(): Boolean = currentPlatform == Platform.NATIVE public fun isWasm(): Boolean = currentPlatform == Platform.WASM