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/main | |
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/main')
-rw-r--r-- | src/main/driver_unified.cpp | 3 | ||||
-rw-r--r-- | src/main/interactive_shell.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/driver_unified.cpp b/src/main/driver_unified.cpp index 88f23ec36..001da12db 100644 --- a/src/main/driver_unified.cpp +++ b/src/main/driver_unified.cpp @@ -36,7 +36,6 @@ #include "options/set_language.h" #include "parser/parser.h" #include "parser/parser_builder.h" -#include "parser/parser_exception.h" #include "smt/command.h" #include "util/result.h" #include "util/statistics_registry.h" @@ -203,7 +202,7 @@ int runCvc4(int argc, char* argv[], Options& opts) { bool status = true; if(opts.getInteractive() && inputFromStdin) { if(opts.getTearDownIncremental() > 0) { - throw OptionException( + throw Exception( "--tear-down-incremental doesn't work in interactive mode"); } if(!opts.wasSetByUserIncrementalSolving()) { diff --git a/src/main/interactive_shell.h b/src/main/interactive_shell.h index 3739e2251..b3c54f580 100644 --- a/src/main/interactive_shell.h +++ b/src/main/interactive_shell.h @@ -37,7 +37,7 @@ namespace parser { class SymbolManager; -class CVC4_PUBLIC InteractiveShell +class InteractiveShell { const Options& d_options; std::istream& d_in; |