| 2226 | // >>>>>>>> WasmEdge store functions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
| 2227 | |
| 2228 | WASMEDGE_CAPI_EXPORT WasmEdge_StoreContext * |
| 2229 | WasmEdge_StoreCreate(void) noexcept { |
| 2230 | try { |
| 2231 | return toStoreCxt(new WasmEdge::Runtime::StoreManager); |
| 2232 | } catch (...) { |
| 2233 | handleCAPIError(); |
| 2234 | return nullptr; |
| 2235 | } |
| 2236 | } |
| 2237 | |
| 2238 | WASMEDGE_CAPI_EXPORT const WasmEdge_ModuleInstanceContext * |
| 2239 | WasmEdge_StoreFindModule(const WasmEdge_StoreContext *Cxt, |