| 580 | |
| 581 | |
| 582 | LUALIB_API void luaL_pushresult (luaL_Buffer *B) { |
| 583 | lua_State *L = B->L; |
| 584 | lua_pushlstring(L, B->b, B->n); |
| 585 | if (buffonstack(B)) { |
| 586 | lua_copy(L, -1, -3); /* move string to reserved slot */ |
| 587 | lua_pop(L, 2); /* pop string and box (closing the box) */ |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | |
| 592 | LUALIB_API void luaL_pushresultsize (luaL_Buffer *B, size_t sz) { |
no test coverage detected