diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-16 19:46:48 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-16 19:46:48 +0100 |
| commit | eb424bb315a880bf52fe843733445dfb502c1525 (patch) | |
| tree | 70b625ca5169448662573ec7da75622013b247fc /code | |
| parent | 968de5aae886e87f395533283c17d77f31eabd0d (diff) | |
#import and #load
#import - imported entities will not get exported
#load - loaded entities will get exported
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 15 | ||||
| -rw-r--r-- | code/win32.odin | 2 |
2 files changed, 2 insertions, 15 deletions
diff --git a/code/demo.odin b/code/demo.odin index 4909a3e72..f1667bd66 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,19 +1,6 @@ #import "punity.odin" as pn -#import "fmt.odin" as fmt - -test :: proc() { - thing :: proc() { - thing :: proc() { - fmt.println("Hello1") - } - - fmt.println("Hello") - } -} main :: proc() { - test() - init :: proc(c: ^pn.Core) { } @@ -24,5 +11,5 @@ main :: proc() { } } - pn.run(init, step) + // pn.run(init, step) } diff --git a/code/win32.odin b/code/win32.odin index 0ccc934aa..a1fac63f0 100644 --- a/code/win32.odin +++ b/code/win32.odin @@ -96,7 +96,7 @@ SetWindowTextA :: proc(hwnd: HWND, c_string: ^u8) -> BOOL #foreign #dll_import QueryPerformanceFrequency :: proc(result: ^i64) -> i32 #foreign #dll_import QueryPerformanceCounter :: proc(result: ^i64) -> i32 #foreign #dll_import -Sleep :: proc(ms: i32) -> i32 #foreign +Sleep :: proc(ms: i32) -> i32 #foreign #dll_import OutputDebugStringA :: proc(c_str: ^u8) #foreign #dll_import |