summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-02 11:47:43 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-02 11:47:43 -0300
commit78bc8e553d4190fc3b90be5b621fc0f3507586ef (patch)
tree9bd9317e1a56960b944549d44a20b91024574c19 /lua.h
parentdad808a73a98a23729614b8814728d76b4e5d577 (diff)
downloadlua-78bc8e553d4190fc3b90be5b621fc0f3507586ef.tar.gz
lua-78bc8e553d4190fc3b90be5b621fc0f3507586ef.tar.bz2
lua-78bc8e553d4190fc3b90be5b621fc0f3507586ef.zip
new API for garbage collector
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lua.h b/lua.h
index a6001be3..fcae18cf 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.69 2000/09/14 14:09:31 roberto Exp roberto $ 2** $Id: lua.h,v 1.70 2000/09/18 19:39:18 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil 4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
5** e-mail: lua@tecgraf.puc-rio.br 5** e-mail: lua@tecgraf.puc-rio.br
@@ -134,6 +134,12 @@ int lua_dostring (lua_State *L, const char *str);
134int lua_dobuffer (lua_State *L, const char *buff, size_t size, 134int lua_dobuffer (lua_State *L, const char *buff, size_t size,
135 const char *name); 135 const char *name);
136 136
137/*
138** Garbage-collection functions
139*/
140int lua_getgcthreshold (lua_State *L);
141int lua_getgccount (lua_State *L);
142void lua_setgcthreshold (lua_State *L, int newthreshold);
137 143
138/* 144/*
139** miscellaneous functions 145** miscellaneous functions
@@ -146,8 +152,6 @@ void lua_error (lua_State *L, const char *s);
146 152
147void lua_unref (lua_State *L, int ref); 153void lua_unref (lua_State *L, int ref);
148 154
149long lua_collectgarbage (lua_State *L, long limit);
150
151int lua_next (lua_State *L, int index); 155int lua_next (lua_State *L, int index);
152int lua_getn (lua_State *L, int index); 156int lua_getn (lua_State *L, int index);
153 157