coin icon indicating copy to clipboard operation
coin copied to clipboard

<Inventor/errors/SoDebugErrors.h> leaves macro ERROR defined to an undeclared symbol

Open kazssym opened this issue 3 years ago • 1 comments

The header defines ERROR as an undeclared symbol. It seems it tries to save and restore the original definition of ERROR but it fails to do so.

https://github.com/coin3d/coin/blob/dfb56d294eeef3581e4322ed8881f478fc242dec/include/Inventor/errors/SoDebugError.h#L85

kazssym avatar Sep 29 '21 02:09 kazssym

Is it OK to have a definition like this?

enum {
    WIN32_ERROR = ERROR,
#undef ERROR
    ERROR = WIN32_ERROR
};

kazssym avatar Oct 03 '21 01:10 kazssym