Support import files as modules (i.e. import only once)
This commit is contained in:
1 parent
aa6a2caecb
commit
cbd82e3c02
17 files changed
+1462
-1481
No files matched your search
@@ -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