aboutsummaryrefslogtreecommitdiff
path: root/code/game.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-16 11:38:20 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-16 11:38:20 +0100
commit968de5aae886e87f395533283c17d77f31eabd0d (patch)
tree9ce5f4b7726c52c6737e65a5c34ca7123df049b7 /code/game.odin
parent807256dea4d22550ee5da48e806b4e773670fbfc (diff)
Call expression, either handle all or ignore all results.
Diffstat (limited to 'code/game.odin')
-rw-r--r--code/game.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/code/game.odin b/code/game.odin
index 2b56cb64e..dfa05750b 100644
--- a/code/game.odin
+++ b/code/game.odin
@@ -10,7 +10,7 @@ time_now :: proc() -> f64 {
assert(win32_perf_count_freq != 0)
counter: i64
- _ = win32.QueryPerformanceCounter(^counter)
+ win32.QueryPerformanceCounter(^counter)
result := counter as f64 / win32_perf_count_freq as f64
return result
}
@@ -24,7 +24,7 @@ win32_print_last_error :: proc() {
// Yuk!
to_c_string :: proc(s: string) -> []u8 {
c_str := new_slice(u8, s.count+1)
- _ = copy(c_str, s as []byte)
+ copy(c_str, s as []byte)
c_str[s.count] = 0
return c_str
}
@@ -157,8 +157,8 @@ run :: proc() {
if msg.message == WM_QUIT {
running = false
}
- _ = TranslateMessage(^msg)
- _ = DispatchMessageA(^msg)
+ TranslateMessage(^msg)
+ DispatchMessageA(^msg)
}
if is_key_down(Key_Code.ESCAPE) {