[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: tolua vs double pointers arguments
- From: kolya <kolya@...>
- Date: Mon, 28 Aug 2006 18:53:47 +0400
I have C++ function
void f(Foo **arg);
that I'm exposing to Lua using toLua.
tolua produces .cpp file that expects Foo *, not Foo**.
Generated file looks like
arg = (Foo *)tolua_tousertype(...)
C++ function is designed to store something into pointer "arg". But
tolua fails to understand it.
Moreover, if I am using triple pointer:
void f(Foo ***arg);
tolua generates something like that:
Foo**arg = ((Foo*) tolua_tousertype(...);
that could not compile due to type mismatch in left hand side and
right hand side.
Or maybe I am doing something wrong? Thanks in advance.