You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I want to load dynamic libraries manually at runtime, I might also first know about the function types at runtime, so doing it like in the example code, where you cast the functions found by a name functions to a specific function type, won't work.
Specifically, I'm working on a scripting language, and want to add support for calling extern functions. This would be the best way to call it.
What I basically want is something method, which takes the name and the byte representations of arguments, and returns the byte representation of the return value.
Is something like this possible as well?
This might also help for calling variadic functions like printf, where I don't know a real dynamic way yet.
The text was updated successfully, but these errors were encountered:
porky11
changed the title
Typing functions at runtime
Typing functions at runtime or calling untyped functions
Jan 1, 2021
Since I want to load dynamic libraries manually at runtime, I might also first know about the function types at runtime, so doing it like in the example code, where you cast the functions found by a name functions to a specific function type, won't work.
Specifically, I'm working on a scripting language, and want to add support for calling extern functions. This would be the best way to call it.
What I basically want is something method, which takes the name and the byte representations of arguments, and returns the byte representation of the return value.
Is something like this possible as well?
This might also help for calling variadic functions like printf, where I don't know a real dynamic way yet.
The text was updated successfully, but these errors were encountered: