This commit is contained in:
parent
dbc865ee67
commit
562c839835
37 changed files with 742 additions and 45 deletions
|
@ -1,28 +1,23 @@
|
|||
init() {
|
||||
// kernel32.SetConsoleCP(cp.utf8)
|
||||
// kernel32.SetConsoleOutputCP(cp.utf8)
|
||||
utf8 := 65001
|
||||
kernel32.SetConsoleCP(utf8)
|
||||
kernel32.SetConsoleOutputCP(utf8)
|
||||
main.main()
|
||||
exit()
|
||||
}
|
||||
|
||||
exit() {
|
||||
// kernel32.ExitProcess(0)
|
||||
kernel32.ExitProcess(0)
|
||||
}
|
||||
|
||||
crash() {
|
||||
// kernel32.ExitProcess(1)
|
||||
kernel32.ExitProcess(1)
|
||||
}
|
||||
|
||||
// const {
|
||||
// cp {
|
||||
// utf8 65001
|
||||
// }
|
||||
// }
|
||||
|
||||
// extern {
|
||||
// kernel32 {
|
||||
// SetConsoleCP(cp uint)
|
||||
// SetConsoleOutputCP(cp uint)
|
||||
// ExitProcess(code uint)
|
||||
// }
|
||||
// }
|
||||
extern {
|
||||
kernel32 {
|
||||
SetConsoleCP(cp uint)
|
||||
SetConsoleOutputCP(cp uint)
|
||||
ExitProcess(code uint)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue