From d0780fa16d0365cfacf1c9a4ff58126a92c12e40 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 9 Nov 1994 16:10:11 -0200 Subject: [PATCH] lua_call cannot be a macro, because it would push the function over the parameters --- lua.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua.h b/lua.h index 2a9e30b3..f53c091d 100644 --- a/lua.h +++ b/lua.h @@ -2,7 +2,7 @@ ** LUA - Linguagem para Usuarios de Aplicacao ** Grupo de Tecnologia em Computacao Grafica ** TeCGraf - PUC-Rio -** $Id: lua.h,v 3.4 1994/11/07 18:27:39 roberto Exp roberto $ +** $Id: lua.h,v 3.5 1994/11/08 19:56:39 roberto Exp roberto $ */ @@ -35,6 +35,7 @@ void lua_error (char *s); int lua_dofile (char *filename); int lua_dostring (char *string); int lua_callfunction (lua_Object function); +int lua_call (char *funcname); lua_Object lua_getparam (int number); #define lua_getresult lua_getparam @@ -69,8 +70,6 @@ void lua_unlock (int ref); #define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n)) -#define lua_call(f) lua_callfunction(lua_getglobal(f)) - #define lua_getindexed(o,n) (lua_pushobject(o), lua_pushnumber(n), lua_getsubscript()) #define lua_getfield(o,f) (lua_pushobject(o), lua_pushstring(f), lua_getsubscript())