mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-20 18:06:42 +00:00
Responded to PR review. Made dynlib return false on js instead of panic
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user