void pointer duck typing

This commit is contained in:
Krzosa Karol
2022-06-17 09:16:33 +02:00
parent 66d7c8ca52
commit ed017c79a5
9 changed files with 68 additions and 38 deletions

View File

@@ -39,6 +39,7 @@ release :: (m: *Memory)
m.commit = 0
m.reserve = 0
String16 :: struct;; str: *U16; len: S64
print :: (string: String16)
handle := GetStdHandle(STD_OUTPUT_HANDLE)
WriteConsoleW(handle, (string.str)->*void, string.len->DWORD, 0, 0)