lua-users home
lua-l archive

Re: tolua limitation!!

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


> When I try to use tolua on something like
>
> typedef struct vec_
> {
> double coord[3];
> } vector;
>
> I get a parse error on double coord[3].
try:
struct vector
{
 double coord[3];
};
although using C++ syntax, tolua binds this code as a C typedef.
I will fix this limitation in the next version.
-- waldemar

AltStyle によって変換されたページ (->オリジナル) /