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

Function luaL_execresult

extlibs/sol3/include/sol/sol.hpp:3007–3021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3005#endif
3006
3007COMPAT53_API int luaL_execresult(lua_State *L, int stat) {
3008 const char *what = "exit";
3009 if (stat == -1)
3010 return luaL_fileresult(L, 0, NULL);
3011 else {
3012 l_inspectstat(stat, what);
3013 if (*what == 'e' && stat == 0)
3014 lua_pushboolean(L, 1);
3015 else
3016 lua_pushnil(L);
3017 lua_pushstring(L, what);
3018 lua_pushinteger(L, stat);
3019 return 3;
3020 }
3021}
3022
3023COMPAT53_API void luaL_buffinit(lua_State *L, luaL_Buffer_53 *B) {
3024 /* make it crash if used via pointer to a 5.1-style luaL_Buffer */

Callers

nothing calls this directly

Calls 5

lua_pushbooleanFunction · 0.85
lua_pushnilFunction · 0.85
lua_pushstringFunction · 0.85
lua_pushintegerFunction · 0.85
luaL_fileresultFunction · 0.70

Tested by

no test coverage detected