lua-users home
lua-l archive

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


I have written a small library to automatize parameters passing and results retrieving when calling a Lua function in C/C++.
The library is composed of four variations of a single C function, called something like lua_genpcall.
Each function has a printf-like format string and a variable number of arguments.
By the way, in the beginning of documentation page, there is a small example of how to call a Lua function with the standard C API.

See http://lua-users.org/wiki/LuaGenericCall