** Again, the use of 'lua_pushvfstring' ensures this function does ** not need reserved stack space when called. (At worst, it generates ** a memory error instead of the given message.) */
| 236 | ** a memory error instead of the given message.) |
| 237 | */ |
| 238 | LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) { |
| 239 | va_list argp; |
| 240 | va_start(argp, fmt); |
| 241 | luaL_where(L, 1); |
| 242 | lua_pushvfstring(L, fmt, argp); |
| 243 | va_end(argp); |
| 244 | lua_concat(L, 2); |
| 245 | return lua_error(L); |
| 246 | } |
| 247 | |
| 248 | |
| 249 | LUALIB_API int luaL_fileresult (lua_State *L, int stat, const char *fname) { |
no test coverage detected