** Push given string to the stack, as part of the buffer, and ** join the partial strings in the stack into one. */
| 403 | ** join the partial strings in the stack into one. |
| 404 | */ |
| 405 | static void pushstr (BuffFS *buff, const char *str, size_t l) { |
| 406 | lua_State *L = buff->L; |
| 407 | setsvalue2s(L, L->top, luaS_newlstr(L, str, l)); |
| 408 | L->top++; /* may use one extra slot */ |
| 409 | buff->pushed++; |
| 410 | luaV_concat(L, buff->pushed); /* join partial results into one */ |
| 411 | buff->pushed = 1; |
| 412 | } |
| 413 | |
| 414 | |
| 415 | /* |
no test coverage detected