[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Passing arrays or vectors to lua using tolua++ ?
- From: Norman Link <norman.link@...>
- Date: Mon, 14 Jul 2008 22:54:51 +0200
Hello,
I searched the internet for a very long time but found no solution to my
problem, although it might be quite easy to solve. What I'm trying to do
is to send a dynamic array or a vector to lua.
My function has this body:
char** CClass::GetArray();
or
std::vector<char*> CClass::GetArray();
I want to use it in Lua like this:
myArray = myClass:GetArray()
print(myArray[1])
Is there a way to get it working somehow using tolua++? It has to be as
generic as possible, I want to use tolua++ and a package file.
Thanks in advance,
Norman