We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Could be nice to have user-defined enums
enum RESULT { SUCCESS=0, FAILURE=1, UNKNOWN=2 }
That can be used inside switch-case as literals:
switch (result) { case SUCCESS: ... case FAILURE: .... case UNKNOWN: ... }
And as parameters to functions
void foo(RESULT r) { if (r == SUCCESS) ... }
The text was updated successfully, but these errors were encountered:
#define would work like this. Enums i think, works like this RESULT.FAILURE
#define
RESULT.FAILURE
Sorry, something went wrong.
There are several ways to use enums, I don't mind which one we choose as long as it works 😄
It would probably be better to just replace RESULT.FAILURE with 1 in the compilation process.
1
No branches or pull requests
Could be nice to have user-defined enums
That can be used inside switch-case as literals:
And as parameters to functions
The text was updated successfully, but these errors were encountered: