diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2021-03-16 10:56:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 10:56:01 -0700 |
commit | d6890791897ddebf1212d3e3147bf7aeb2415b27 (patch) | |
tree | 51c69ba48a7550b6a7660e2488b4b39cbedba539 /src/options/options.h | |
parent | 0d3ea6f2dcaf80d386c7765ee8a708c18e3ed574 (diff) |
cmake: Generate cvc4_export.h and set visibility to hidden. (#6139)
The build system (cmake) will automatically generate an export header
cvc4_export.h, which makes sure that the correct export features are
defined depending on the compiler and target platform. The macro CVC4_EXPORT
replaces CVC4_PUBLIC and its usage is reduced by 2/3.
Co-authored-by: Gereon Kremer <nafur42@gmail.com>
Diffstat (limited to 'src/options/options.h')
-rw-r--r-- | src/options/options.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/options/options.h b/src/options/options.h index df94be9d9..728e5c7c8 100644 --- a/src/options/options.h +++ b/src/options/options.h @@ -26,6 +26,7 @@ #include "base/listener.h" #include "base/modal_exception.h" +#include "cvc4_export.h" #include "options/language.h" #include "options/option_exception.h" #include "options/printer_modes.h" @@ -42,7 +43,8 @@ namespace options { class OptionsListener; -class CVC4_PUBLIC Options { +class CVC4_EXPORT Options +{ friend api::Solver; /** The struct that holds all option values. */ options::OptionsHolder* d_holder; @@ -80,7 +82,8 @@ class CVC4_PUBLIC Options { static const unsigned s_preemptAdditional = 6; public: - class CVC4_PUBLIC OptionsScope { + class OptionsScope + { private: Options* d_oldOptions; public: @@ -92,7 +95,7 @@ public: ~OptionsScope(){ Options::s_current = d_oldOptions; } - }; + }; /** Return true if current Options are null */ static inline bool isCurrentNull() { @@ -301,7 +304,7 @@ public: int argc, char* argv[], std::vector<std::string>* nonoptions); -};/* class Options */ +}; /* class Options */ }/* CVC4 namespace */ |