mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 13:10:54 +00:00
4bdfc12b79
Release Notes: - N/A --------- Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
24 lines
483 B
Text
24 lines
483 B
Text
interface platform {
|
|
/// An operating system.
|
|
enum os {
|
|
/// macOS.
|
|
mac,
|
|
/// Linux.
|
|
linux,
|
|
/// Windows.
|
|
windows,
|
|
}
|
|
|
|
/// A platform architecture.
|
|
enum architecture {
|
|
/// AArch64 (e.g., Apple Silicon).
|
|
aarch64,
|
|
/// x86.
|
|
x86,
|
|
/// x86-64.
|
|
x8664,
|
|
}
|
|
|
|
/// Gets the current operating system and architecture.
|
|
current-platform: func() -> tuple<os, architecture>;
|
|
}
|