Changed js panics to unimplemented where sensible

This commit is contained in:
Dragos Popescu
2023-03-22 12:10:27 +01:00
parent 144d034475
commit b2ecb37b35
2 changed files with 48 additions and 48 deletions
+8 -8
View File
@@ -22,34 +22,34 @@ _thread_priority_map := [Thread_Priority]i32{
}
_create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^Thread {
panic("core:thread procedure not supported on js target")
unimplemented("core:thread procedure not supported on js target")
}
_start :: proc(t: ^Thread) {
panic("core:thread procedure not supported on js target")
unimplemented("core:thread procedure not supported on js target")
}
_is_done :: proc(t: ^Thread) -> bool {
panic("core:thread procedure not supported on js target")
unimplemented("core:thread procedure not supported on js target")
}
_join :: proc(t: ^Thread) {
panic("core:thread procedure not supported on js target")
unimplemented("core:thread procedure not supported on js target")
}
_join_multiple :: proc(threads: ..^Thread) {
panic("core:thread procedure not supported on js target")
unimplemented("core:thread procedure not supported on js target")
}
_destroy :: proc(thread: ^Thread) {
panic("core:thread procedure not supported on js target")
unimplemented("core:thread procedure not supported on js target")
}
_terminate :: proc(using thread : ^Thread, exit_code: int) {
panic("core:thread procedure not supported on js target")
unimplemented("core:thread procedure not supported on js target")
}
_yield :: proc() {
panic("core:thread procedure not supported on js target")
unimplemented("core:thread procedure not supported on js target")
}