Load is file relative not module relative

This commit is contained in:
Krzosa Karol
2022-10-09 15:20:53 +02:00
parent 54426fdd69
commit 9ad2da03c8
8 changed files with 16 additions and 21 deletions

View File

@@ -30,7 +30,8 @@ main :: (): int
a: Any = 10
b: Any = 20
c := a + b
Assert(c.type == S64 && c == 30)
Assert(a+b+a==c+(5+5))
// - [ ] DANGEROUS BUG! &(int64_t){32} creates a new value, we shouldn't do this with variables!!!
// Assert(c.type == S64 && c == 30)
// Assert(a+b+a==c+(5+5))
return 0

View File

@@ -1,6 +1,6 @@
#import "Multimedia.core"
#load "Multimedia.core"
WinMain :: (hInstance: HINSTANCE, hPrevInstance: HINSTANCE, lpCmdLine: LPSTR, nShowCmd: int): int
main :: (): int
StartMultimedia(title = "Hello people!")
for UpdateMultimedia()
if Mu.key[Key.Escape].down ;; Mu.quit = true