From e78cf96c971234ea25e35a9672ef00ea389d843f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 24 Oct 1997 15:17:24 -0200 Subject: first version of Cclosures. --- lua.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index 1cce56c0..91d80c02 100644 --- a/lua.h +++ b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: $ +** $Id: lua.h,v 1.1 1997/09/16 19:25:59 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 @@ -72,6 +72,7 @@ void lua_endblock (void); lua_Object lua_lua2C (int number); #define lua_getparam(_) lua_lua2C(_) #define lua_getresult(_) lua_lua2C(_) +lua_Object lua_upvalue (int n); int lua_isnil (lua_Object object); int lua_istable (lua_Object object); @@ -90,7 +91,7 @@ void *lua_getuserdata (lua_Object object); void lua_pushnil (void); void lua_pushnumber (float n); void lua_pushstring (char *s); -void lua_pushcfunction (lua_CFunction fn); +void lua_pushCclosure (lua_CFunction fn, int n); void lua_pushusertag (void *u, int tag); void lua_pushobject (lua_Object object); @@ -131,6 +132,7 @@ long lua_collectgarbage (long limit); #define lua_pushuserdata(u) lua_pushusertag(u, 0) +#define lua_pushcfunction(f) lua_pushCclosure(f, 0) -- cgit v1.2.3-55-g6feb