In my C++ project, I have a header with a line like this:
enum { OK, ERROR_1, ERROR_2 };
When compiling with GCC (v 9.4.0), I get
error: expected identifier before '(' token
Examining the preprocessor output gives
enum {
# 53 "/path/to/file.h" 3 4
(0)
# 53 "/path/to/file.h"
, ERROR_1, ERROR_2 };
I searched my project for a macro that would define OK and replace it with (0) but to no avail. So my question is how can I track where this (0) comes from? I read the docs on preprocessor output, but haven't found anything that would aid me in my problem.