void pointer duck typing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user