Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kazssym opened this issue Sep 29, 2021 · 1 comment · May be fixed by #469
Open

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

kazssym opened this issue Sep 29, 2021 · 1 comment · May be fixed by #469
Labels
acknowledged Coin3d team acknowledges this issue bug Something isn't working

Comments

@kazssym
Copy link

kazssym commented Sep 29, 2021

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.

#define ERROR SODEBUGERROR_STORE_ERROR_DEF

@kazssym
Copy link
Author

kazssym commented Oct 3, 2021

Is it OK to have a definition like this?

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

@kazssym kazssym linked a pull request Oct 4, 2021 that will close this issue
@VolkerEnderlein VolkerEnderlein added the bug Something isn't working label Nov 5, 2021
@VolkerEnderlein VolkerEnderlein added the acknowledged Coin3d team acknowledges this issue label Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledged Coin3d team acknowledges this issue bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants