Add switch case statement
This commit is contained in:
@@ -41,6 +41,13 @@ create_bitmap :: (size: Vec2I, bottom_up: Bool = true): Windows_Bitmap
|
||||
result.hdc = CreateCompatibleDC(hdc)
|
||||
return result
|
||||
|
||||
print :: (type: Type)
|
||||
switch type
|
||||
int, S64, S32, S16, S8
|
||||
OutputDebugStringA("int")
|
||||
default
|
||||
OutputDebugStringA("unknown_type")
|
||||
|
||||
app_is_running := true
|
||||
window_procedure :: (hwnd: HWND, msg: UINT, wparam: WPARAM, lparam: LPARAM): LRESULT
|
||||
if msg == WM_DESTROY
|
||||
|
||||
Reference in New Issue
Block a user