mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-14 15:11:25 -07:00
Support import files as modules (i.e. import only once)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
add :: proc(a, b: int) -> int {
|
||||
return a + b;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import "other"
|
||||
|
||||
TAU :: 6.28;
|
||||
PI :: PI/2;
|
||||
|
||||
main :: proc() {
|
||||
x : int = 2;
|
||||
x = x * 3;
|
||||
|
||||
y := add(1, x);
|
||||
}
|
||||
Reference in New Issue
Block a user