I would like to process the following code in Lua and C:
Say I have a C function called Foo that is bound to Lua. I call it the following in a Lua script:
Foo(15, "bar", function(z) return 2 * z + 1 end)
On the C side, I extract the arguments, and I can save the number and string in my structure. But what type of data will I need to store an anonymous function? And how can I call it later?
Jerry
source share