MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / get_guard

Method get_guard

include/chaiscript/dispatchkit/bootstrap.hpp:280–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 }
279
280 static Const_Proxy_Function get_guard(const Const_Proxy_Function &t_pf)
281 {
282 const auto pf = std::dynamic_pointer_cast<const dispatch::Dynamic_Proxy_Function>(t_pf);
283 if (pf && pf->get_guard())
284 {
285 return pf->get_guard();
286 } else {
287 throw std::runtime_error("Function does not have a guard");
288 }
289 }
290
291 template<typename FunctionType>
292 static std::vector<Boxed_Value> do_return_boxed_value_vector(FunctionType f,

Callers 3

format_typesMethod · 0.45
has_guardMethod · 0.45
function_less_thanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected