| 1118 | |
| 1119 | |
| 1120 | static int doonnewstack (lua_State *L) { |
| 1121 | lua_State *L1 = lua_newthread(L); |
| 1122 | size_t l; |
| 1123 | const char *s = luaL_checklstring(L, 1, &l); |
| 1124 | int status = luaL_loadbuffer(L1, s, l, s); |
| 1125 | if (status == LUA_OK) |
| 1126 | status = lua_pcall(L1, 0, 0, 0); |
| 1127 | lua_pushinteger(L, status); |
| 1128 | return 1; |
| 1129 | } |
| 1130 | |
| 1131 | |
| 1132 | static int s2d (lua_State *L) { |
nothing calls this directly
no test coverage detected