MCPcopy Create free account
hub / github.com/danomatika/ofxLua / lua_error

Function lua_error

libs/lua/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 15

SWIG_Lua_class_setFunction · 0.85
_wrap_new_string__SWIG_0Function · 0.85
_wrap_new_string__SWIG_1Function · 0.85
_wrap_new_stringFunction · 0.85
_wrap_string_sizeFunction · 0.85
_wrap_string_lengthFunction · 0.85
_wrap_string_emptyFunction · 0.85
_wrap_string_c_strFunction · 0.85
_wrap_string_dataFunction · 0.85
_wrap_string_assignFunction · 0.85

Calls 1

luaG_errormsgFunction · 0.85

Tested by

no test coverage detected