Infix proc calling convention proc "std" (...)

This commit is contained in:
gingerBill
2017-10-29 16:44:44 +00:00
parent 1eb9994d88
commit d2588f9d1d
12 changed files with 300 additions and 397 deletions
+1 -1
View File
@@ -252,7 +252,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);