| 1307 | // >>>>>>>> WasmEdge limit functions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
| 1308 | |
| 1309 | WASMEDGE_CAPI_EXPORT WasmEdge_LimitContext * |
| 1310 | WasmEdge_LimitCreate(const uint64_t Min, const bool Is64Bit) noexcept { |
| 1311 | try { |
| 1312 | return toLimitCxt(new WasmEdge::AST::Limit(Min, Is64Bit)); |
| 1313 | } catch (...) { |
| 1314 | handleCAPIError(); |
| 1315 | return nullptr; |
| 1316 | } |
| 1317 | } |
| 1318 | |
| 1319 | WASMEDGE_CAPI_EXPORT WasmEdge_LimitContext * |
| 1320 | WasmEdge_LimitCreateWithMax(const uint64_t Min, const uint64_t Max, |