MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / stack_fail

Function stack_fail

extlibs/sol3/include/sol/sol.hpp:9210–9218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9208namespace sol {
9209 namespace detail {
9210 inline void stack_fail(int, int) {
9211#if !(defined(SOL_NO_EXCEPTIONS) && SOL_NO_EXCEPTIONS)
9212 throw error(detail::direct_error, "imbalanced stack after operation finish");
9213#else
9214 // Lol, what do you want, an error printout? :3c
9215 // There's no sane default here. The right way would be C-style abort(), and that's not acceptable, so
9216 // hopefully someone will register their own stack_fail thing for the `fx` parameter of stack_guard.
9217#endif // No Exceptions
9218 }
9219 } // namespace detail
9220
9221 struct stack_guard {

Callers

nothing calls this directly

Calls 1

errorClass · 0.70

Tested by

no test coverage detected