Helper function to validate wasm module.
| 395 | |
| 396 | // Helper function to validate wasm module. |
| 397 | bool validateModule(const WasmEdge_ConfigureContext *Conf, |
| 398 | const WasmEdge_ASTModuleContext *Mod) { |
| 399 | WasmEdge_ValidatorContext *Validator = WasmEdge_ValidatorCreate(Conf); |
| 400 | WasmEdge_Result Res = WasmEdge_ValidatorValidate(Validator, Mod); |
| 401 | WasmEdge_ValidatorDelete(Validator); |
| 402 | return WasmEdge_ResultOK(Res); |
| 403 | } |
| 404 | |
| 405 | // Helper function to register AST module. |
| 406 | WasmEdge_ModuleInstanceContext * |
no test coverage detected