This commit is contained in:
parent
2b703e9af2
commit
70c2da4a4d
40 changed files with 821 additions and 117 deletions
12
lib/core/core_linux_arm.q
Normal file
12
lib/core/core_linux_arm.q
Normal file
|
@ -0,0 +1,12 @@
|
|||
init() {
|
||||
main.main()
|
||||
exit()
|
||||
}
|
||||
|
||||
exit() {
|
||||
syscall(93, 0)
|
||||
}
|
||||
|
||||
crash() {
|
||||
syscall(93, 1)
|
||||
}
|
12
lib/core/core_linux_x86.q
Normal file
12
lib/core/core_linux_x86.q
Normal file
|
@ -0,0 +1,12 @@
|
|||
init() {
|
||||
main.main()
|
||||
exit()
|
||||
}
|
||||
|
||||
exit() {
|
||||
syscall(60, 0)
|
||||
}
|
||||
|
||||
crash() {
|
||||
syscall(60, 1)
|
||||
}
|
12
lib/core/core_mac.q
Normal file
12
lib/core/core_mac.q
Normal file
|
@ -0,0 +1,12 @@
|
|||
init() {
|
||||
main.main()
|
||||
exit()
|
||||
}
|
||||
|
||||
exit() {
|
||||
syscall(0x2000001, 0)
|
||||
}
|
||||
|
||||
crash() {
|
||||
syscall(0x2000001, 1)
|
||||
}
|
28
lib/core/core_windows.q
Normal file
28
lib/core/core_windows.q
Normal file
|
@ -0,0 +1,28 @@
|
|||
init() {
|
||||
// kernel32.SetConsoleCP(cp.utf8)
|
||||
// kernel32.SetConsoleOutputCP(cp.utf8)
|
||||
main.main()
|
||||
exit()
|
||||
}
|
||||
|
||||
exit() {
|
||||
// kernel32.ExitProcess(0)
|
||||
}
|
||||
|
||||
crash() {
|
||||
// kernel32.ExitProcess(1)
|
||||
}
|
||||
|
||||
// const {
|
||||
// cp {
|
||||
// utf8 65001
|
||||
// }
|
||||
// }
|
||||
|
||||
// extern {
|
||||
// kernel32 {
|
||||
// SetConsoleCP(cp uint)
|
||||
// SetConsoleOutputCP(cp uint)
|
||||
// ExitProcess(code uint)
|
||||
// }
|
||||
// }
|
Loading…
Add table
Add a link
Reference in a new issue