-
Notifications
You must be signed in to change notification settings - Fork 920
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
C compatible enum.h and struct.h #479
Conversation
From https://ci.appveyor.com/project/galaxyhaxz/devilution/builds/20552451
From https://travis-ci.org/diasurgical/devilution/jobs/459700345
|
enums.h
Outdated
@@ -1446,22 +1446,22 @@ enum monster_flag { | |||
MFLAG_KNOCKBACK = 0x80, | |||
MFLAG_SEARCH = 0x100, | |||
MFLAG_CAN_OPEN_DOOR = 0x200, | |||
MFLAG_NO_ENEMY = 0x400, | |||
MFLAG_SEARCH2 = 0x400, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MFLAG_SEARCH2 = 0x400, | |
MFLAG_NO_ENEMY = 0x400, |
LGTM when the build passes :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Thanks for the review :) |
This PR simply changes the code style in struct.h and enum.h to one that allows us to use the header in the same way for both C and C++.