diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-30 10:01:48 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-30 10:01:48 -0300 |
commit | ab52fc6097569cf51bc0c55dd5b6b1329eefd970 (patch) | |
tree | 776f1c7b8b42d519aef011edb0ea9e439d10325d /lstring.h | |
parent | e68d0df1c6144551eedda90e0a99d850b1461df1 (diff) | |
download | lua-github-ab52fc6097569cf51bc0c55dd5b6b1329eefd970.tar.gz |
new macro to `fix' strings
Diffstat (limited to 'lstring.h')
-rw-r--r-- | lstring.h | 4 |
1 files changed, 3 insertions, 1 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); |