lua-users home
lua-l archive

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

Hi all,

Answering my own question and asking another one.

First if you have a similar problem as I had before, try changing the names of the variables inside the struct and see if the tolua++ parser works. It worked for me using tolua_pushusertype().

Second, Is there anyway of knowing inside a lua script, automatically the name of the script itself.

I would like to have something like in bash shell, where the first argument is the name of the program called. In Lua is there a way to get the value passed to lua_pcall() inside the script called, in order to know its own name automatically?

Thanks in advance,

2009/11/5 zweifel <>

I use tolua++ and I am used to passing C++ objects with tolua_pushusertype(). There are not any way of doing the same with C structs?