| 3385 | const auto direct_error = direct_error_tag{}; |
| 3386 | |
| 3387 | struct error_result { |
| 3388 | int results; |
| 3389 | const char* format_string; |
| 3390 | std::array<const char*, 4> args_strings; |
| 3391 | |
| 3392 | error_result() : results(0), format_string(nullptr) { |
| 3393 | } |
| 3394 | |
| 3395 | error_result(int results) : results(results), format_string(nullptr) { |
| 3396 | } |
| 3397 | |
| 3398 | error_result(const char* fmt, const char* msg) : results(0), format_string(fmt) { |
| 3399 | args_strings[0] = msg; |
| 3400 | } |
| 3401 | }; |
| 3402 | |
| 3403 | inline int handle_errors(lua_State* L, const error_result& er) { |
| 3404 | if (er.format_string == nullptr) { |
no outgoing calls
no test coverage detected