lua-users home
lua-l archive

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


Sorry, but I don´t understand!

All I need is to store a reference/point to a lua function
and call it when I need!

For example

In setkey.lua


function handleKey(key)
.
.
.
end

-- My C function
SetKeyFunction(handleKey)

In setkey.c, I must store the address of handleKey, and 
call it when the user press a key...


The answer is: How SetFunctionKey gets the reference/address
of handleKey???

Thanks for any tip!