lua-users home
lua-l archive

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


Yeah, that from where I get Lunar..
After registering my methods, I call push (I tryed calling push before and after lua_loadfile), the at lua_pcall
I get a runtime error..
I call push passing the this pointer as user data..
I spent my entire weekend trying to give a godam fucking living c++ object to lua, why is that nobody ever consider that on the article/packages?? All they to is explain how to give lua the TYPE, not the object..I have they type, I can create new objects on lua script, but I want to give my c++ this pointer to the script..

On Sun, Nov 11, 2012 at 6:16 PM, Ignacio Burgueño <iburgueno@gmail.com> wrote:
Look here:

http://lua-users.org/wiki/CppBindingWithLunar

I think "push" is what you need.