| 3005 | #endif |
| 3006 | |
| 3007 | COMPAT53_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 | |
| 3023 | COMPAT53_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 */ |
nothing calls this directly
no test coverage detected