Files
Nasal-Interpreter/std/os.nas
ValKmjolnir 788e0026c2 optimize location info gen in codegen
and refactor lib.nas, add multiple native modules
2023-07-23 23:57:25 +08:00

19 lines
329 B
Plaintext

# os.nas
# 2023 by ValKmjolnir
# os is used to use or get some os-related info/functions.
# windows/macOS/linux are supported.
# get a string that tell which os it runs on.
var platform = func() {
return __platform;
}
var time = func() {
return __logtime;
}
var arch = func() {
return __arch;
}