| 529 | |
| 530 | |
| 531 | LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) { |
| 532 | if (l > 0) { /* avoid 'memcpy' when 's' can be NULL */ |
| 533 | char *b = luaL_prepbuffsize(B, l); |
| 534 | memcpy(b, s, l * sizeof(char)); |
| 535 | luaL_addsize(B, l); |
| 536 | } |
| 537 | } |
| 538 | |
| 539 | |
| 540 | LUALIB_API void luaL_addstring (luaL_Buffer *B, const char *s) { |
no test coverage detected