lua-users home
lua-l archive

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


Right, I have a package definition like:

class Node
{
    matrix m;
};

class Object : public Node
{
    int data;
};

class Object2 : public Node
{
    int data;
};


If I make instances of the Objects how can I find out the base class (Node)
using tolua? tried:

lua_Object tolua_base (lua_Object lo);

but this doesnt seem to work. Must I wrap the userdata object into a table?



Also
int            lua_dobuffer  (char *buff, int size, char *name);
should be:
int            lua_dobuffer  (unsigned char *buff, int size, char *name);
to be compatible with tolua.

Regards,
Nick