I would like to handle the following code in Lua and C:
Let's say that I have C function named Foo that is bound to Lua. I call it like following in Lua script:
Foo(15, "bar", function(z) return 2 * z + 1 end)
On the C side, I retrieve the arguments and I can store the number and string in my structure. But what data type would I need to store the anonymous function? And how can I call it later?