wasi: make the demo run on wasi and run it in CI

This commit is contained in:
Laytan Laats
2024-06-29 23:09:49 +02:00
parent 476d0087c8
commit 604551eb2d
12 changed files with 129 additions and 54 deletions
+5 -1
View File
@@ -6,6 +6,8 @@ import "base:intrinsics"
_ :: intrinsics
IS_SUPPORTED :: _IS_SUPPORTED
Thread_Proc :: #type proc(^Thread)
MAX_USER_ARGUMENTS :: 8
@@ -58,7 +60,9 @@ Thread :: struct {
creation_allocator: mem.Allocator,
}
#assert(size_of(Thread{}.user_index) == size_of(uintptr))
when IS_SUPPORTED {
#assert(size_of(Thread{}.user_index) == size_of(uintptr))
}
Thread_Priority :: enum {
Normal,