mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
new macro to `fix' strings
This commit is contained in:
parent
e68d0df1c6
commit
ab52fc6097
2 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lstring.h,v 1.34 2001/08/31 19:46:07 roberto Exp $
|
||||
** $Id: lstring.h,v 1.35 2001/11/28 20:13:13 roberto Exp roberto $
|
||||
** String table (keep all strings handled by Lua)
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -30,6 +30,8 @@
|
|||
#define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \
|
||||
(sizeof(s)/sizeof(char))-1))
|
||||
|
||||
#define luaS_fix(s) ((s)->tsv.marked = FIXMARK)
|
||||
|
||||
void luaS_resize (lua_State *L, int newsize);
|
||||
Udata *luaS_newudata (lua_State *L, size_t s);
|
||||
void luaS_freeall (lua_State *L);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue