-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for ArborX version macros
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include <ArborX_Config.hpp> | ||
|
||
#ifndef ARBORX_VERSION | ||
static_assert(false, "ARBORX_VERSION macro is not defined!"); | ||
#endif | ||
|
||
#ifndef ARBORX_VERSION_MAJOR | ||
static_assert(false, "ARBORX_VERSION_MAJOR macro is not defined!"); | ||
#endif | ||
|
||
#ifndef ARBORX_VERSION_MINOR | ||
static_assert(false, "ARBORX_VERSION_MINOR macro is not defined!"); | ||
#endif | ||
|
||
#ifndef ARBORX_VERSION_PATCH | ||
static_assert(false, "ARBORX_VERSION_PATCH macro is not defined!"); | ||
#endif | ||
|
||
static_assert(0 <= ARBORX_VERSION_MAJOR && ARBORX_VERSION_MAJOR <= 99); | ||
static_assert(0 <= ARBORX_VERSION_MINOR && ARBORX_VERSION_MINOR <= 99); | ||
static_assert(0 <= ARBORX_VERSION_PATCH && ARBORX_VERSION_PATCH <= 99); | ||
static_assert(ARBORX_VERSION == ARBORX_VERSION_MAJOR * 10000 + | ||
ARBORX_VERSION_MINOR * 100 + | ||
ARBORX_VERSION_PATCH); |