| 591 | |
| 592 | |
| 593 | LUALIB_API void luaL_pushresult (luaL_Buffer *B) { |
| 594 | lua_State *L = B->L; |
| 595 | checkbufferlevel(B, -1); |
| 596 | lua_pushlstring(L, B->b, B->n); |
| 597 | if (buffonstack(B)) |
| 598 | lua_closeslot(L, -2); /* close the box */ |
| 599 | lua_remove(L, -2); /* remove box or placeholder from the stack */ |
| 600 | } |
| 601 | |
| 602 | |
| 603 | LUALIB_API void luaL_pushresultsize (luaL_Buffer *B, size_t sz) { |
no test coverage detected