q/lib/core/core_windows.q
Eduard Urbach 12e0ccf7b2
Some checks failed
/ test (push) Failing after 15s
Added Windows support
2025-07-01 13:37:40 +02:00

23 lines
No EOL
291 B
Text

init() {
utf8 := 65001
kernel32.SetConsoleCP(utf8)
kernel32.SetConsoleOutputCP(utf8)
main.main()
exit()
}
exit() {
kernel32.ExitProcess(0)
}
crash() {
kernel32.ExitProcess(1)
}
extern {
kernel32 {
SetConsoleCP(cp uint)
SetConsoleOutputCP(cp uint)
ExitProcess(code uint)
}
}