lua-users home
lua-l archive

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


>how do i pull the function name out of an argument so if i have the
>following in lua 4 script ?
>
>glutDisplayFunc( display )
>
>i want to get "display" in the c wrapper so i can pass it to
>lua_getglobal for lua_call later ?

Do you really want to name "display" or just its value?
If it's the value, then you want to save a reference to it somewhere
and the lua_call it (after lua_getref).
--lhf