diff options
| author | gingerBill <bill@gingerbill.org> | 2022-01-20 19:58:35 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-01-20 19:58:35 +0000 |
| commit | 77b91352aeb72d9b22a05e3094607a8a5ab4e091 (patch) | |
| tree | 8c9d917bd771a6bb1192ba56fcb3fe4de90b6ec0 /core/runtime | |
| parent | 3d7d3471924574beee08fc304a6daf6a8707d723 (diff) | |
Add `Odin_OS_Type` and `Odin_Arch_Type` to `core:runtime`
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/core.odin | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/core/runtime/core.odin b/core/runtime/core.odin index cd76b0bb5..6c2ab1405 100644 --- a/core/runtime/core.odin +++ b/core/runtime/core.odin @@ -388,6 +388,35 @@ Raw_Cstring :: struct { /* // Defined internally by the compiler + Odin_OS_Type :: enum int { + Unknown, + Windows, + Darwin, + Linux, + Essence, + FreeBSD, + WASI, + JS, + Freestanding, + } +*/ +Odin_OS_Type :: type_of(ODIN_OS) + +/* + // Defined internally by the compiler + Odin_Arch_Type :: enum int { + Unknown, + amd64, + i386, + arm64, + wasm32, + wasm64, + } +*/ +Odin_Arch_Type :: type_of(ODIN_ARCH) + +/* + // Defined internally by the compiler Odin_Build_Mode_Type :: enum int { Executable, Dynamic, |