Commit dab61c0107911b4626c64376e920d6d13f0401ff

Authored by Henry Fredrick Schreiner
Committed by Henry Schreiner
1 parent 225492f6

Fix for single file include order

include/CLI/Macros.hpp
... ... @@ -3,12 +3,9 @@
3 3 // Distributed under the 3-Clause BSD License. See accompanying
4 4 // file LICENSE or https://github.com/CLIUtils/CLI11 for details.
5 5  
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]
9 7  
10 8 // The following version macro is very similar to the one in PyBind11
11   -
12 9 #if !(defined(_MSC_VER) && __cplusplus == 199711L) && !defined(__INTEL_COMPILER)
13 10 #if __cplusplus >= 201402L
14 11 #define CLI11_CPP14
... ... @@ -41,4 +38,4 @@ namespace CLI {
41 38 #define CLI11_DEPRECATED(reason) __attribute__((deprecated(reason)))
42 39 #endif
43 40  
44   -} // namespace CLI
  41 +// [CLI11:verbatim]
... ...
include/CLI/Version.hpp
... ... @@ -3,13 +3,11 @@
3 3 // Distributed under the 3-Clause BSD License. See accompanying
4 4 // file LICENSE or https://github.com/CLIUtils/CLI11 for details.
5 5  
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]
9 7  
10 8 #define CLI11_VERSION_MAJOR 1
11 9 #define CLI11_VERSION_MINOR 5
12 10 #define CLI11_VERSION_PATCH 3
13 11 #define CLI11_VERSION "1.5.3"
14 12  
15   -} // namespace CLI
  13 +// [CLI11:verbatim]
... ...