| 746 | } |
| 747 | |
| 748 | WASMEDGE_CAPI_EXPORT const WasmEdge_FunctionInstanceContext * |
| 749 | WasmEdge_ValueGetFuncRef(const WasmEdge_Value Val) noexcept { |
| 750 | return toFuncCxt(WasmEdge::retrieveFuncRef( |
| 751 | WasmEdge::ValVariant::wrap<WasmEdge::RefVariant>( |
| 752 | to_WasmEdge_128_t<WasmEdge::uint128_t>(Val.Value)) |
| 753 | .get<WasmEdge::RefVariant>() |
| 754 | .getPtr<WasmEdge::Runtime::Instance::FunctionInstance>())); |
| 755 | } |
| 756 | |
| 757 | WASMEDGE_CAPI_EXPORT void * |
| 758 | WasmEdge_ValueGetExternRef(const WasmEdge_Value Val) noexcept { |