| 52 | }; |
| 53 | |
| 54 | inline int handle_errors(lua_State* L, const error_result& er) { |
| 55 | if (er.format_string == nullptr) { |
| 56 | return er.results; |
| 57 | } |
| 58 | return luaL_error(L, er.format_string, er.argument_strings[0], er.argument_strings[1], er.argument_strings[2], er.argument_strings[3]); |
| 59 | } |
| 60 | |
| 61 | class error_exception : public std::runtime_error { |
| 62 | public: |