Responded to PR review. Made dynlib return false on js instead of panic

This commit is contained in:
Dragos Popescu
2023-03-20 21:57:51 +01:00
parent 23aae6ab0f
commit 951511704d

View File

@@ -3,13 +3,13 @@
package dynlib
_load_library :: proc(path: string, global_symbols := false) -> (Library, bool) {
panic("core:dynlib not supported by JS target")
return
}
_unload_library :: proc(library: Library) -> bool {
panic("core:dynlib not supported by JS target")
return
}
_symbol_address :: proc(library: Library, symbol: string) -> (ptr: rawptr, found: bool) {
panic("core:dynlib not supported by JS target")
return
}