Fix spilling imports

This commit is contained in:
Krzosa Karol
2022-06-13 23:44:40 +02:00
parent bc3d3d00ca
commit 1a6d2598a3
3 changed files with 11 additions and 9 deletions

View File

@@ -1,9 +1,8 @@
Base :: #load "base.kl"
Win :: #load "Windows.kl"
#import "base.kl"
main :: (argc: int, argv: **char): int
memory := Base.reserve(size = 10000)
handle := Win.GetStdHandle(Win.STD_OUTPUT_HANDLE)
memory := reserve(size = 10000)
handle := Windows.GetStdHandle(Windows.STD_OUTPUT_HANDLE)
string: *char = "hello world"
Win.WriteConsoleA(handle, string->*void, 11, 0, 0)
Windows.WriteConsoleA(handle, string->*void, 11, 0, 0)