[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Passing C struct values automatically to Lua
- From: zweifel <zweifel@...>
- Date: Fri, 6 Nov 2009 00:59:45 -0200
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,
Danilo
2009/11/5 zweifel
<zweifel@gmail.com>
Hello,
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?
Thanks,
Danilo