Simplified standard library
This commit is contained in:
parent
6eab48c586
commit
930b5e16f4
25 changed files with 232 additions and 231 deletions
|
@ -1,13 +1,3 @@
|
|||
extern kernel32 {
|
||||
SetConsoleCP(cp uint)
|
||||
SetConsoleOutputCP(cp uint)
|
||||
ExitProcess(code uint)
|
||||
}
|
||||
|
||||
const cp {
|
||||
utf8 65001
|
||||
}
|
||||
|
||||
init() {
|
||||
kernel32.SetConsoleCP(cp.utf8)
|
||||
kernel32.SetConsoleOutputCP(cp.utf8)
|
||||
|
@ -17,4 +7,14 @@ init() {
|
|||
|
||||
exit() {
|
||||
kernel32.ExitProcess(0)
|
||||
}
|
||||
|
||||
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