lua-users home
lua-l archive

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


> Lobject = { callback = function (self...) .... end}
>
> PassObjectCallbacktoC (Lobject.callback) -- note Lobject:callback cannot be passed.
	You'll have to pass the object and its method:

PassObjectCallbacktoC (Lobject, Lobject.callback)

	Or create a closure:

PassObjectCallbacktoC (function () return Lobject:callback() end)

	Got it?
		Tomas