| 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 |
nothing calls this directly
no test coverage detected