Use the original function name in C code wrappers
Using "sym:name" in the wrapping code is wrong, it is different from "name" if the function has been renamed and we need to call the original C function, not whichever name it is exported under.
This commit is contained in:
parent
a6f53d18ea
commit
d3412499bb
1 changed files with 1 additions and 1 deletions
|
|
@ -694,7 +694,7 @@ ready:
|
|||
Printv(wrapper->code, return_type, " result;\n", NIL);
|
||||
Printf(wrapper->code, "result = ");
|
||||
}
|
||||
Printv(wrapper->code, name, "(", arg_names, ");\n", NIL);
|
||||
Printv(wrapper->code, Getattr(n, "name"), "(", arg_names, ");\n", NIL);
|
||||
Append(wrapper->code, append_feature(n));
|
||||
if (!is_void_return)
|
||||
Printf(wrapper->code, "return result;\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue