MCPcopy Create free account
hub / github.com/ThePhD/sol2 / dump_throw_on_error

Function dump_throw_on_error

include/sol/dump_handler.hpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 inline int dump_throw_on_error(lua_State* L_, int result_code, lua_Writer writer_function, void* userdata_pointer_, bool strip) {
64#if SOL_IS_OFF(SOL_EXCEPTIONS)
65 return dump_panic_on_error(L_, result_code, writer_function, userdata_pointer_, strip);
66#else
67 (void)L_;
68 (void)writer_function;
69 (void)userdata_pointer_;
70 (void)strip;
71 throw dump_error(result_code);
72#endif // no exceptions stuff
73 }
74
75} // namespace sol
76

Callers

nothing calls this directly

Calls 2

dump_panic_on_errorFunction · 0.85
dump_errorClass · 0.85

Tested by

no test coverage detected