| 3024 | } |
| 3025 | |
| 3026 | WASMEDGE_CAPI_EXPORT const WasmEdge_GlobalTypeContext * |
| 3027 | WasmEdge_GlobalInstanceGetGlobalType( |
| 3028 | const WasmEdge_GlobalInstanceContext *Cxt) noexcept { |
| 3029 | if (Cxt) { |
| 3030 | return toGlobTypeCxt(&fromGlobCxt(Cxt)->getGlobalType()); |
| 3031 | } |
| 3032 | return nullptr; |
| 3033 | } |
| 3034 | |
| 3035 | WASMEDGE_CAPI_EXPORT WasmEdge_Value WasmEdge_GlobalInstanceGetValue( |
| 3036 | const WasmEdge_GlobalInstanceContext *Cxt) noexcept { |