[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Newbie question - regarding calling Lua functions from C/C++
- From: Patrick Rapin <toupie300@...>
- Date: Tue, 10 Aug 2010 09:27:38 +0200
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