File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
#include < clap/clap.h>
6
6
7
+ #include " version-check.hh"
8
+
7
9
#include " checking-level.hh"
8
10
#include " misbehaviour-handler.hh"
9
11
Original file line number Diff line number Diff line change 9
9
10
10
#include < clap/all.h>
11
11
12
+ #include " version-check.hh"
13
+
12
14
#include " checking-level.hh"
13
15
#include " host-proxy.hh"
14
16
#include " misbehaviour-handler.hh"
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ /*
4
+ * Check the clap version against the supported versions for this version of CLAP Helpers.
5
+ * It defines two clap versions, a min and max version, and static asserts that the CLAP
6
+ * we are using is in range.
7
+ *
8
+ * Workflow wise, if you are about to make clap-helpers incompatible with a version, set
9
+ * the prior version to max, commit and push, and then move the min to current and max to 2 0 0
10
+ * again.
11
+ */
12
+
13
+ #include " clap/version.h"
14
+
15
+ #if CLAP_VERSION_LT(1,2,0)
16
+ static_assert (false , " Clap version must be at least 1.2.0" )
17
+ #endif
18
+
19
+ #if CLAP_VERSION_GE(2,0,0)
20
+ static_assert (false , " Clap version must be at most 1.x" )
21
+ #endif
You can’t perform that action at this time.
0 commit comments