| 116 | |
| 117 | |
| 118 | LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { |
| 119 | va_list argp; |
| 120 | va_start(argp, fmt); |
| 121 | luaL_where(L, 1); |
| 122 | lua_pushvfstring(L, fmt, argp); |
| 123 | va_end(argp); |
| 124 | lua_concat(L, 2); |
| 125 | return lua_error(L); |
| 126 | } |
| 127 | |
| 128 | /* }====================================================== */ |
| 129 |
no test coverage detected