aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-28 00:07:03 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-28 00:07:03 +0100
commit5f6b0942f405f5595787ba3436e2e5410268e71e (patch)
treef0b585689c1f4762167a58a7a8aa2ac4d2b79028 /code
parent6088cbeddb84e25e5966a1876ad4ffcaad6676c9 (diff)
Update Standard Library; Fix Type_Info for integers
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin7
-rw-r--r--code/game.odin3
2 files changed, 8 insertions, 2 deletions
diff --git a/code/demo.odin b/code/demo.odin
index be7426d9f..ba6532286 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -1,5 +1,10 @@
#import "fmt.odin"
+#import "utf8.odin"
+#import "hash.odin"
main :: proc() {
- fmt.println("Hello")
+ s := "Hello"
+ fmt.println(s,
+ utf8.valid_string(s),
+ hash.murmur64(s.data, s.count))
}
diff --git a/code/game.odin b/code/game.odin
index df3473128..46940fe4f 100644
--- a/code/game.odin
+++ b/code/game.odin
@@ -1,6 +1,7 @@
#import "win32.odin"
#import "fmt.odin"
#import "math.odin"
+#import "os.odin"
#import "opengl.odin" as gl
TWO_HEARTS :: #rune "💕"
@@ -128,7 +129,7 @@ run :: proc() {
win32_proc :: proc(hwnd: HWND, msg: u32, wparam: WPARAM, lparam: LPARAM) -> LRESULT #no_inline {
if msg == WM_DESTROY || msg == WM_CLOSE || msg == WM_QUIT {
- ExitProcess(0)
+ os.exit(0)
return 0
}
return DefWindowProcA(hwnd, msg, wparam, lparam)