i've recently added Google's V8 to a MSVC2005 project which is also using Qt and i haven't been able to compile it since. The defines are giving me a lot of problems, for example in V8's token.h there is
#define T(name, string, precedence) name,
enum Value {
TOKEN_LIST(T, T)
NUM_TOKENS
};
The line TOKEN_LIST(T, T) yields an error C2143 ('}' missing before '{'), also error C2059 (syntax error '{'), also C2334 (token before '{'; visible function text is skipped). This repeats itself a couple of times.
I have searched through SO and through Microsoft's database and tested various things, for example using /clr, which broke Qt. I also used #undef before including the "v8.h" file for possibly existing definitions to be removed.
Can anyone help with this? Is there a standard procedure to fix errors like this? Thanks.