[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tolua++ code generation issues
- From: Ariel Manzur <listas@...>
- Date: Fri, 6 Oct 2006 16:43:29 -0400
On Fri, Oct 06, 2006 at 02:21:24PM -0300, Frederico Ferro Schuh wrote:
> Hi all,
>[...]
> The first one seems to be really a bug, and it's about the "tolua_outside"
> keyword. Whenever I use it, I get a "tolua_outside" inside the cpp file
> which messes up the compilation. Everything works fine when I delete
> manually every instance of "tolua_outside" from the generated file though,
> and the keyword's functionality also works.
yeah, it's a bug. You can solve it by adding '$#define tolua_outside' on
your pkg, so it adds that to the output.
> The second strange issue is when declaring parameters as std::string in
> [...]
> I found out recently that my stack was getting huge for no apparent reason,
> and after looking at the values, I found out that every single std::string
> parameter of my exposed functions were also being pushed into the stack.
As pointed out by Sam Roberts, it's because of the references (and yes, it
should ignore them since they're const.. another bug aparently). I'm not
sure if that could increase your stack size tho, wouldn't lua discard the
extra parameters when the function returns and you only expect one (or
none)?
Ariel.
>
> Thanks!
>
> --
> Frederico Ferro Schuh