| 3530 | #endif |
| 3531 | |
| 3532 | COMPAT53_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 | |
| 3548 | COMPAT53_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 */ |
nothing calls this directly
no test coverage detected