Add basic package support (no IR support yet)

This commit is contained in:
gingerBill committed 2018-05-26 23:12:55 +01:00
1 parent 5b6770f3d2
commit c067b90403
20 files changed
+698 -818

No files matched your search

@@ -3,10 +3,7 @@ package atomics
// TODO(bill): Use assembly instead here to implement atomics
// Inline vs external file?
when ODIN_OS == "windows" {
import win32 "core:sys/windows.odin"
}
#assert(ODIN_ARCH == "amd64"); // TODO(bill): x86 version
import "core:sys/win32"
yield_thread :: proc() { win32.mm_pause(); }