MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / lua_error

Function lua_error

lib/lua/src/lapi.c:1238–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1236
1237
1238LUA_API int lua_error (lua_State *L) {
1239 TValue *errobj;
1240 lua_lock(L);
1241 errobj = s2v(L->top.p - 1);
1242 api_checknelems(L, 1);
1243 /* error object is the memory error message? */
1244 if (ttisshrstring(errobj) && eqshrstr(tsvalue(errobj), G(L)->memerrmsg))
1245 luaM_error(L); /* raise a memory error */
1246 else
1247 luaG_errormsg(L); /* raise a regular error */
1248 /* code unreachable; will unlock when control actually leaves the kernel */
1249 return 0; /* to avoid warnings */
1250}
1251
1252
1253LUA_API int lua_next (lua_State *L, int idx) {

Callers 5

luaB_errorFunction · 0.85
luaB_dofileFunction · 0.85
luaL_errorFunction · 0.85
resizeboxFunction · 0.85
luaB_auxwrapFunction · 0.85

Calls 2

luaG_errormsgFunction · 0.85
GFunction · 0.50

Tested by

no test coverage detected