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

Add versioning macros. #378

Merged
merged 1 commit into from Nov 1, 2018
Merged

Add versioning macros. #378

merged 1 commit into from Nov 1, 2018

Conversation

drwells
Copy link
Member

@drwells drwells commented Oct 31, 2018

This commit adds basic preprocessor constants and one function for doing version checks. One can now do things like

#if IBAMR_VERSION_GTE(1, 0, 0)
    std::vector<MeshBase *> meshes;
#else
    std::vector<Mesh *> meshes;
#endif

for compatibility with the changes made in #368.

I really wish I had realized this was missing before the 0.3.0 release; better late than never, I suppose.

@drwells
Copy link
Member Author

drwells commented Oct 31, 2018

autoheader is trying to outsmart me... this doesn't work. I'll patch it in a few minutes.

@drwells
Copy link
Member Author

drwells commented Oct 31, 2018

That should work.

Jenkins retest this please

@boyceg boyceg merged commit 3572278 into IBAMR:master Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants