-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from 2xB/2xB/fixkconst
Kommon: Bake KConst epoch into header file
- Loading branch information
Showing
3 changed files
with
15 additions
and
12 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,10 @@ | ||
#if @KConst_REFERENCE_EPOCH@ == 2006 | ||
#include "KConst_2006.h" | ||
|
||
#elif @KConst_REFERENCE_EPOCH@ == 2021 | ||
#include "KConst_2021.h" | ||
|
||
#else | ||
#error "Unsupported value for KConst_REFERENCE_EPOCH: '@KConst_REFERENCE_EPOCH@'" | ||
|
||
#endif |
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 |
---|---|---|
|
@@ -7,11 +7,6 @@ | |
* @author S. Hickford <[email protected]> | ||
*/ | ||
|
||
#if KConst_REFERENCE_EPOCH == 2006 | ||
#include "KConst_2006.h" | ||
|
||
#elif KConst_REFERENCE_EPOCH == 2021 | ||
|
||
#ifndef KCONST_H_ | ||
#define KCONST_H_ | ||
|
||
|
@@ -457,7 +452,3 @@ constexpr double Ue3sq() | |
} /* namespace katrin */ | ||
|
||
#endif //KCONST_H | ||
|
||
#else | ||
#error "Unsupported value for KConst_REFERENCE_EPOCH." | ||
#endif |