mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
doc(c-api) Add the own annotation when necessary.
This commit is contained in:
6
lib/c-api/src/wasm_c_api/externals/global.rs
vendored
6
lib/c-api/src/wasm_c_api/externals/global.rs
vendored
@@ -45,7 +45,11 @@ pub unsafe extern "C" fn wasm_global_copy(global: &wasm_global_t) -> Box<wasm_gl
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn wasm_global_get(global: &wasm_global_t, out: &mut wasm_val_t) {
|
pub unsafe extern "C" fn wasm_global_get(
|
||||||
|
global: &wasm_global_t,
|
||||||
|
// own
|
||||||
|
out: &mut wasm_val_t,
|
||||||
|
) {
|
||||||
let value = global.inner.get();
|
let value = global.inner.get();
|
||||||
*out = value.try_into().unwrap();
|
*out = value.try_into().unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ pub unsafe extern "C" fn wasm_instance_delete(_instance: Option<Box<wasm_instanc
|
|||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn wasm_instance_exports(
|
pub unsafe extern "C" fn wasm_instance_exports(
|
||||||
instance: &wasm_instance_t,
|
instance: &wasm_instance_t,
|
||||||
|
// own
|
||||||
out: &mut wasm_extern_vec_t,
|
out: &mut wasm_extern_vec_t,
|
||||||
) {
|
) {
|
||||||
let instance = &instance.inner;
|
let instance = &instance.inner;
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ pub unsafe extern "C" fn wasm_module_validate(
|
|||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe extern "C" fn wasm_module_exports(
|
pub unsafe extern "C" fn wasm_module_exports(
|
||||||
module: &wasm_module_t,
|
module: &wasm_module_t,
|
||||||
|
// own
|
||||||
out: &mut wasm_exporttype_vec_t,
|
out: &mut wasm_exporttype_vec_t,
|
||||||
) {
|
) {
|
||||||
let exports = module
|
let exports = module
|
||||||
|
|||||||
Reference in New Issue
Block a user