MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / luaL_execresult

Function luaL_execresult

Libs/sol/sol.hpp:3532–3546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3530#endif
3531
3532COMPAT53_API int luaL_execresult(lua_State* L, int stat) {
3533 const char* what = "exit";
3534 if (stat == -1)
3535 return luaL_fileresult(L, 0, NULL);
3536 else {
3537 l_inspectstat(stat, what);
3538 if (*what == 'e' && stat == 0)
3539 lua_pushboolean(L, 1);
3540 else
3541 lua_pushnil(L);
3542 lua_pushstring(L, what);
3543 lua_pushinteger(L, stat);
3544 return 3;
3545 }
3546}
3547
3548COMPAT53_API void luaL_buffinit(lua_State* L, luaL_Buffer_53* B) {
3549 /* make it crash if used via pointer to a 5.1-style luaL_Buffer */

Callers

nothing calls this directly

Calls 1

luaL_fileresultFunction · 0.85

Tested by

no test coverage detected