MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_error

Function lua_error

src/Chain/libraries/glua/lapi.cpp:1201–1208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199
1200
1201LUA_API int lua_error(lua_State *L) {
1202 lua_lock(L);
1203 api_checknelems(L, 1);
1204 auto msg = (lua_gettop(L) > 0 && lua_isstring(L, -1)) ? lua_tostring(L, -1) : nullptr;
1205 luaG_errormsg(L, msg);
1206 /* code unreachable; will unlock when control actually leaves the kernel */
1207 return 0; /* to avoid warnings */
1208}
1209
1210
1211LUA_API int lua_next(lua_State *L, int idx) {

Callers 4

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

Calls 3

lua_gettopFunction · 0.85
lua_isstringFunction · 0.85
luaG_errormsgFunction · 0.85

Tested by

no test coverage detected