lua-users home
lua-l archive

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


Hallo,

On Fri, 11 Jan 2002, christinesherbrooke wrote:

>
>        I would like to know if it is possible to register a function
> C with TWO or more arguments.
>

	Every C funtion to be registered in Lua must have only one
argument because when in Lua functions have any number of arguments. To
obtain those one must use the stack referenced by the lua_State passed to
the C function.

  --Alex	asandro@lcg.dc.ufc.br		Lab. de Computação Gráfica/UFC
+----------------------------------------------------------------------------+
|"Minha força vem da solidão. Não tenho medo das chuvas tempestuosas nem das |
| grandes ventanias soltas, pois eu também sou o escuro da noite."	     |
|	- Clarice Lispector						     |
+----------------------------------------------------------------------------+