MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / call_method_safe

Function call_method_safe

Source/Utils/dukglue/public_util.h:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99template <typename RetT, typename ObjT, typename... ArgTs>
100typename std::enable_if<std::is_void<RetT>::value, duk_idx_t>::type call_method_safe(duk_context* ctx, void* udata)
101{
102 typedef SafeMethodCallData<RetT, ObjT, ArgTs...> DataT;
103 DataT* data = (DataT*) udata;
104 call_method_safe_helper(ctx, *(data->obj), data->method_name, data->args, typename make_indexes<ArgTs...>::type());
105 return 1;
106}
107
108template <typename RetT, typename ObjT, typename... ArgTs>
109typename std::enable_if<!std::is_void<RetT>::value, duk_idx_t>::type call_method_safe(duk_context* ctx, void* udata)

Callers

nothing calls this directly

Calls 3

call_method_safe_helperFunction · 0.85
typeFunction · 0.85
dukglue_readFunction · 0.85

Tested by

no test coverage detected