mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-04 01:34:39 +00:00
Basic module system (only file namespacing)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user