Basic module system (only file namespacing)

This commit is contained in:
Ginger Bill
2016-09-14 14:16:01 +01:00
parent a60e6bedd9
commit bb109b47d6
6 changed files with 82 additions and 84 deletions

View File

@@ -1,13 +1,10 @@
// #load "basic.odin"
#import "runtime.odin"
#import "print.odin"
test_proc :: proc() {
println("Hello?")
}
main :: proc() {
println("% % % %", "Hellope", true, 6.28, {4}int{1, 2, 3, 4})
x: struct #ordered {
x, y: int
z: f32
}
println("%", x)
}

View File

@@ -1,6 +1,12 @@
#foreign_system_library "user32"
#foreign_system_library "gdi32"
test_proc :: proc() {
x := "Goodbye?"
}
HANDLE :: type rawptr
HWND :: type HANDLE
HDC :: type HANDLE
@@ -398,3 +404,4 @@ Key_Code :: enum i32 {
PA1 = 0xFD,
OEM_CLEAR = 0xFE,
}