/usr/include/sopt/config.h is in libsopt-dev 2.0.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #ifndef SOPT_CPP_CONFIG_H
#define SOPT_CPP_CONFIG_H
//! Problems with using and constructors
#define SOPT_HAS_USING
#ifndef SOPT_HAS_USING
#define SOPT_HAS_NOT_USING
#endif
//! True if using OPENMP
#define SOPT_OPENMP
//! Macro to start logging or not
#define SOPT_DO_LOGGING
#include <string>
#include <tuple>
namespace sopt {
//! Returns library version
inline std::string version() { return "2.0.0"; }
//! Returns library version
inline std::tuple<uint8_t, uint8_t, uint8_t> version_tuple() {
return std::tuple<uint8_t, uint8_t, uint8_t>(
2, 0, 0);
}
//! Returns library git reference, if known
inline std::string gitref() { return ""; }
//! Default logging level
inline std::string default_logging_level() { return "critical"; }
//! Default logger name
inline std::string default_logger_name() { return "sopt"; }
//! Wether to add color to the logger
inline constexpr bool color_logger() { return true; }
# ifdef SOPT_OPENMP
//! Number of threads used during testing
inline constexpr std::size_t number_of_threads_in_tests() { return 4; }
# endif
}
#endif
|