lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Yes, it is possible, just push the function and the parameters on the stack and call it by 'lua_call()'.
It is described in the manual, section 5.12 (Calling Lua Functions) with a good example.
This was for Lua 4, for Lua 5 there should also be an example in the manual.
----- Original Message -----
Sent: Saturday, May 10, 2003 8:42 PM
Subject: calling a lua function from C code


Is possible to do this?

--
Roger D. Vargas
ICQ: 117641572
Linux user: 180787
* Tanto si piensas que puedes, como si piensas que no puedes, tienes razón *
Henry Ford