get_proc_address

Definition: atom addr = get_proc_address(atom lib, string name)
Description: Low-level wrapper of kernel32/GetProcAddress and libdl/dlsym.
Used by define_c_func/define_c_proc/define_c_var and for runtime interpretation of inline assembly.
Applications would not normally use this routine directly.
Comments: This is simply some common code that is also needed by the run-time interpreter.

There is no validation, implicit or otherwise, that the given symbol name is a function, procedure, variable, or even something else.
The complete absence of any error checking means that application code is usually much better served by define_c_func and friends.
See Also: define_c_func, define_c_proc, define_c_var