lua

A copy of the Lua development repository
Log | Files | Refs | README

commit d0780fa16d0365cfacf1c9a4ff58126a92c12e40
parent fc0de64c2c3b79c68decc786c1de974fa2a6686e
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed,  9 Nov 1994 16:09:52 -0200

lua_call cannot be a macro, because it would push the function
over the parameters

Diffstat:
Mlua.h | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 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())