Skip to content

Commit a6e92f5

Browse files
committed
Fix for single file include order
1 parent 7a6cd04 commit a6e92f5

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

include/CLI/Macros.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
// Distributed under the 3-Clause BSD License. See accompanying
44
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
55

6-
namespace CLI {
7-
8-
// Note that all code in CLI11 must be in a namespace, even if it just a define.
6+
// [CLI11:verbatim]
97

108
// The following version macro is very similar to the one in PyBind11
11-
129
#if !(defined(_MSC_VER) && __cplusplus == 199711L) && !defined(__INTEL_COMPILER)
1310
#if __cplusplus >= 201402L
1411
#define CLI11_CPP14
@@ -41,4 +38,4 @@ namespace CLI {
4138
#define CLI11_DEPRECATED(reason) __attribute__((deprecated(reason)))
4239
#endif
4340

44-
} // namespace CLI
41+
// [CLI11:verbatim]

include/CLI/Version.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
// Distributed under the 3-Clause BSD License. See accompanying
44
// file LICENSE or https://github.com/CLIUtils/CLI11 for details.
55

6-
namespace CLI {
7-
8-
// Note that all code in CLI11 must be in a namespace, even if it just a define.
6+
// [CLI11:verbatim]
97

108
#define CLI11_VERSION_MAJOR 1
119
#define CLI11_VERSION_MINOR 5
1210
#define CLI11_VERSION_PATCH 3
1311
#define CLI11_VERSION "1.5.3"
1412

15-
} // namespace CLI
13+
// [CLI11:verbatim]

0 commit comments

Comments
 (0)