diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-28 00:07:03 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-28 00:07:03 +0100 |
| commit | 5f6b0942f405f5595787ba3436e2e5410268e71e (patch) | |
| tree | f0b585689c1f4762167a58a7a8aa2ac4d2b79028 /code | |
| parent | 6088cbeddb84e25e5966a1876ad4ffcaad6676c9 (diff) | |
Update Standard Library; Fix Type_Info for integers
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 7 | ||||
| -rw-r--r-- | code/game.odin | 3 |
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) |