Closed diraven closed 1 year ago
Is that macro defined? Are you including the file that defines it?
Here is the one I have issues with:
class Extended_PreInit_EventHandlers
{
class ADDON
{
// This will be executed once in 3DEN, main menu and before briefing has started for every mission
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};
It's a part of extended event handlers init CfgEventHandlers.hpp
.
The error is
|
6 | init = QUOTE(call COMPILE_FILE(XEH_preInit));
| ^ expected one of: [LeftBrace, DoubleQuote, Digit(0)]
help: Did you forget to place quotes around a string? Or perhaps you forgot to define / import a value.
Hey! I'm having the exact same error with macroses, have you found a workaround since?
Hey! I'm having the exact same error with macroses, have you found a workaround since?
Nope. That's the only place I never figured out though. So I'm just using raw code there without macroses. Good thing is it only fails in ExtEventHandlers though. I didn't encounter it anywhere else. In other places it was my own fault by providing unquoted values. E.g. FUNC() or GVAR() instead of QFUNC() and QGVAR().
Can you provide a link to a copy of the project that is getting that error
Interestingly enough, it works for me now. Not sure what changed since I did not update hemtt executable.
Having macroses in cpp files causes errors like:
Is there a way around it?
PS: Just wanted to say "Thanks". It does everything I automated with Python and more. Very convenient and immensely useful.