Fix pointer arithmetic; remove suffix #tags for proc types
This commit is contained in:
1 parent
d2588f9d1d
commit
ae24a8e5ae
4 files changed
+18
-67
No files matched your search
+1
-1
@@ -268,7 +268,7 @@ dlopen :: inline proc(filename: string, flags: int) -> rawptr {
|
||||
free(cstr);
|
||||
return handle;
|
||||
}
|
||||
dlsym :: inline proc(handle: rawptr, symbol: string) -> (proc() #cc_c) {
|
||||
dlsym :: inline proc(handle: rawptr, symbol: string) -> rawptr {
|
||||
assert(handle != nil);
|
||||
cstr := strings.new_c_string(symbol);
|
||||
proc_handle := _unix_dlsym(handle, cstr);
|
||||
|
||||
Reference in new issue
Block a user