Hi, we have encountered (error) Invalid number of character '(' when no macros are defined.
on following simplified repro code
#define DEFINE_API_FUNCTION(_type, _name, ...) \ _type _name ##(__VA_ARGS__) DEFINE_API_FUNCTION(int, myFunction, const char* arg1, size_t arg2) { return 0; }
Because the code is wrong. Remove ##. you are telling the preprocessor to combine _name and ( into 1 token.
Log in to post a comment.
Hi,
we have encountered
(error) Invalid number of character '(' when no macros are defined.
on following simplified repro code
Because the code is wrong. Remove ##. you are telling the preprocessor to combine _name and ( into 1 token.