| 1317 | } |
| 1318 | |
| 1319 | WASMEDGE_CAPI_EXPORT WasmEdge_LimitContext * |
| 1320 | WasmEdge_LimitCreateWithMax(const uint64_t Min, const uint64_t Max, |
| 1321 | const bool Is64Bit, const bool IsShared) noexcept { |
| 1322 | try { |
| 1323 | return toLimitCxt(new WasmEdge::AST::Limit(Min, Max, Is64Bit, IsShared)); |
| 1324 | } catch (...) { |
| 1325 | handleCAPIError(); |
| 1326 | return nullptr; |
| 1327 | } |
| 1328 | } |
| 1329 | |
| 1330 | WASMEDGE_CAPI_EXPORT uint64_t |
| 1331 | WasmEdge_LimitGetMin(const WasmEdge_LimitContext *Cxt) noexcept { |