lua-users home
lua-l archive

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



> Is anyone using enums in their pkg files?  When I attempt to do so, I
find
> that I get strange results from tolua++ 1.0.2.  Here is a very simple
> example:
> 
> test.pkg
> -------------------
> enum
> {
>     foo
> };
> 
> void doFoo(int);


Give them a name, tolua++ doesn't like anonymous enums, e.g.

enum fooenums {
	foo
};


Nick