[−][src]Function mun_runtime::mun_runtime_create
#[no_mangle]pub unsafe extern "C" fn mun_runtime_create(
library_path: *const c_char,
options: RuntimeOptions,
handle: *mut RuntimeHandle
) -> ErrorHandle
Constructs a new runtime that loads the library at library_path
and its dependencies. If
successful, the runtime handle
is 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
].
The runtime must be manually destructed using mun_runtime_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.