From 78bc8e553d4190fc3b90be5b621fc0f3507586ef Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 2 Oct 2000 11:47:43 -0300 Subject: new API for garbage collector --- lua.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index a6001be3..fcae18cf 100644 --- a/lua.h +++ b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.69 2000/09/14 14:09:31 roberto Exp roberto $ +** $Id: lua.h,v 1.70 2000/09/18 19:39:18 roberto Exp roberto $ ** Lua - An Extensible Extension Language ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil ** e-mail: lua@tecgraf.puc-rio.br @@ -134,6 +134,12 @@ int lua_dostring (lua_State *L, const char *str); int lua_dobuffer (lua_State *L, const char *buff, size_t size, const char *name); +/* +** Garbage-collection functions +*/ +int lua_getgcthreshold (lua_State *L); +int lua_getgccount (lua_State *L); +void lua_setgcthreshold (lua_State *L, int newthreshold); /* ** miscellaneous functions @@ -146,8 +152,6 @@ void lua_error (lua_State *L, const char *s); void lua_unref (lua_State *L, int ref); -long lua_collectgarbage (lua_State *L, long limit); - int lua_next (lua_State *L, int index); int lua_getn (lua_State *L, int index); -- cgit v1.2.3-55-g6feb