[−][src]Function mun_runtime::mun_runtime_get_function_definition
#[no_mangle]pub unsafe extern "C" fn mun_runtime_get_function_definition(
handle: RuntimeHandle,
fn_name: *const c_char,
has_fn_info: *mut bool,
fn_definition: *mut FunctionDefinition
) -> ErrorHandle
Retrieves the [FunctionDefinition
] for fn_name
from the runtime corresponding to handle
.
If successful, has_fn_info
and fn_info
are set, otherwise a non-zero error handle is
returned.
If a non-zero error handle is returned, it must be manually destructed using
[mun_error_destroy
].
Safety
This function receives raw pointers as parameters. If any of the arguments is a null pointer, an error will be returned. Passing pointers to invalid data, will lead to undefined behavior.