MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / user_code

Function user_code

test/expected/catch.hpp:6522–6525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6520
6521 template <typename Fun>
6522 Detail::CompleteType_t<Detail::ResultOf_t<Fun()>> user_code(Fun&& fun) {
6523 CATCH_TRY{
6524 return Detail::complete_invoke(std::forward<Fun>(fun));
6525 } CATCH_CATCH_ALL{
6526 getResultCapture().benchmarkFailed(translateActiveException());
6527 CATCH_RUNTIME_ERROR(Detail::benchmarkErrorMsg);
6528 }

Callers 1

runMethod · 0.85

Calls 1

complete_invokeFunction · 0.85

Tested by

no test coverage detected