lua-users home
lua-l archive

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


RJP Computing wrote:
> On 8/7/07, *KHMan* <keinhong@gmail.com <mailto:keinhong@gmail.com>> wrote:
> 
>     RJP Computing wrote:
>     > #define DEBUG 2
>       ^^^
>     The token DEBUG is defined here...
> 
> [snip]
> Should generate:
>     tolua_constant(tolua_S,"WHAT_EVER",3);
> 
> But currently generates:
>     tolua_constant(tolua_S,"WHAT_EVER",WHAT_EVER);
> 
> So when you go to build the generated file the compiler complains that
> WHAT_EVER is undefined.
> [snip]

Just off the top of my head... I think you are supposed to include
the header file like this (for tolua++):

$#include "SDL.h"

So, when tweaking values, the constants will still be in one place.

-- 
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia