| 540 | |
| 541 | |
| 542 | LUALIB_API void luaL_pushresult (luaL_Buffer *B) { |
| 543 | lua_State *L = B->L; |
| 544 | lua_pushlstring(L, B->b, B->n); |
| 545 | if (buffonstack(B)) { |
| 546 | resizebox(L, -2, 0); /* delete old buffer */ |
| 547 | lua_remove(L, -2); /* remove its header from the stack */ |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | |
| 552 | LUALIB_API void luaL_pushresultsize (luaL_Buffer *B, size_t sz) { |
no test coverage detected