mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
Added function 'luaL_buffsub'
This commit is contained in:
parent
4c32d9300c
commit
b93f3b00bb
2 changed files with 19 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue