MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / luaL_error

Function luaL_error

Dependencies/lua/src/lauxlib.c:235–243  ·  view source on GitHub ↗

** Again, the use of 'lua_pushvfstring' ensures this function does ** not need reserved stack space when called. (At worst, it generates ** an error with "stack overflow" instead of the given message.) */

Source from the content-addressed store, hash-verified

233** an error with "stack overflow" instead of the given message.)
234*/
235LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) {
236 va_list argp;
237 va_start(argp, fmt);
238 luaL_where(L, 1);
239 lua_pushvfstring(L, fmt, argp);
240 va_end(argp);
241 lua_concat(L, 2);
242 return lua_error(L);
243}
244
245
246LUALIB_API int luaL_fileresult (lua_State *L, int stat, const char *fname) {

Callers 15

dump_panic_on_errorFunction · 0.85
callMethod · 0.85
usertype_allocateFunction · 0.85
usertype_unique_allocateFunction · 0.85
user_allocateFunction · 0.85
cannot_destroyFunction · 0.85
member_default_to_stringFunction · 0.85
fail_on_newindexFunction · 0.85
atMethod · 0.85
getMethod · 0.85
index_getMethod · 0.85

Calls 4

luaL_whereFunction · 0.85
lua_pushvfstringFunction · 0.85
lua_concatFunction · 0.85
lua_errorFunction · 0.85

Tested by 6

mem_queryFunction · 0.68
gc_stateFunction · 0.68
getnum_auxFunction · 0.68
getstring_auxFunction · 0.68
getindex_auxFunction · 0.68
runCFunction · 0.68