Add switch case statement

This commit is contained in:
Krzosa Karol
2022-06-19 09:31:16 +02:00
parent fc0d4345ee
commit 94b820a071
7 changed files with 114 additions and 2 deletions

View File

@@ -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