Re: toLua : Bug when defining a constant
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: toLua : Bug when defining a constant
- From: KHMan <keinhong@...>
- Date: 2007年8月08日 11:33:37 +0800
RJP Computing wrote:
> I think I found a bug when defining a constant.
>
> Take the following example packge:
>
> #define DEBUG 2
^^^
The token DEBUG is defined here...
> In the generated file it doesn't reference the 'DEBUG' anywhere, it just
> produces this line:
>
> tolua_constant(tolua_S,"DEBUG",DEBUG);
>
> I might have the wrong idea about how this works, but I expected it to
> place the number I supplied instead of the 'DEBUG'.
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia