[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: toLua : Bug when defining a constant
- From: "RJP Computing" <rjpcomputing@...>
- Date: Wed, 8 Aug 2007 11:40:26 -0400
On 8/8/07, KHMan <firstname.lastname@example.org> wrote:
Not sure what you are getting at, but what I am doing with tolua++
is that the generated xyz.c file now has the:
line somewhere in the beginning. Thus, the generated code will be
able to refer to any constant via their defined names. Why don't
you try it out and see, or find a working sample...
Yes this works, but you will notice there was no reason to specify the value, because it is not used, ever.
I fixed my problem by using the defined value in an existing header. I am just trying to get the app to be easier to use. If I can independently define constants that would help to re-map 'typedef enum' to defines.
Thanks for the discussion. The documentation makes it sound like I can define constants including its' value, all from with in the package.