Global
sealed class Global
Fields
Name | Description |
---|---|
abstract var value: T
|
|
abstract mutable: Boolean
|
Methods
update
abstract fun update(value: Number)
Parameters
Name | Description |
---|---|
value: Number
|
ReturnValue
Name | Description |
---|---|
Unit
|
From the docs:
A global instance is the runtime representation of a global variable. It holds an individual value and a flag indicating whether it is mutable.
The value of mutable globals can be mutated through variable instructions or by external means provided by the embedder.