lua-users home
lua-l archive

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


2007/8/18, Merick <Merick_TeVaran@comcast.net>:
> I'm using FreeBasic to make a script interpreter and have started adding
> wrappers for a gui library. Some of the functions for the gui take a
> pointer to a user-created function as one of the arguments. Can anyone
> tell me how to do this with functions created inside the lua script? I
> know it probably has something to do with lua_ref() but I just can't
> figure it out.

Can you send the prototype of the C function you are calling to
register a callback, along with the prototype of that callback ?