lua-users home
lua-l archive

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


I have a question about making calls from C into Lua functions. The manual is quite clear on what to do when you know the identifier of the function, however I'm wondering if the function itself (a pointer) can be sent to the C side and somehow stored to be called at a later time.

Specifically, I'm wondering if this syntax is possible, assuming setcallback is a C Function:

setcallback( function() ... end )

Is there a specific provision for this, that I overlooked, or would trick need to be involved?