commonMain.com.strumenta.antlrkotlin.runtime.Environment.kt Maven / Gradle / Ivy
// Copyright 2017-present Strumenta and contributors, licensed under Apache 2.0.
// Copyright 2024-present Strumenta and contributors, licensed under BSD 3-Clause.
package com.strumenta.antlrkotlin.runtime
/**
* Gets the value of the specified environment variable.
*
* An environment variable is a system-dependent external named value.
*
* @param name The name of the environment variable
* @return The string value of the variable, or `null`
* if the variable is not defined in the system environment
*
* @author Edoardo Luppi
*/
internal expect fun platformGetEnv(name: String): String?