Added function 'luaL_buffsub'

This commit is contained in:
Roberto Ierusalimschy
2019-10-23 11:10:19 -03:00
parent 4c32d9300c
commit b93f3b00bb
2 changed files with 19 additions and 9 deletions

View File

@@ -185,6 +185,8 @@ struct luaL_Buffer {
#define luaL_addsize(B,s) ((B)->n += (s))
#define luaL_buffsub(B,s) ((B)->n -= (s))
LUALIB_API void (luaL_buffinit) (lua_State *L, luaL_Buffer *B);
LUALIB_API char *(luaL_prepbuffsize) (luaL_Buffer *B, size_t sz);
LUALIB_API void (luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l);