-
-
Notifications
You must be signed in to change notification settings - Fork 591
Closed
Description
#define X(methodname) \
void methodname( \
int i);
class C {
#define Y X(f)
public:
Y
};
Parsing this header throws:
Info: Parsing m.h
Exception in thread "main" org.bytedeco.javacpp.tools.ParserException: m.h:6:"#define X(methodname)
void methodname(
int i);": Could not parse declaration at ')'
at org.bytedeco.javacpp.tools.Parser.declarations(Parser.java:4220)
I think this is related to \n
in the first macro that are expanded in the second as true \n
, making this loop end too soon.
How to fix this ?