summaryrefslogtreecommitdiff
path: root/src/base/output.cpp
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2021-03-16 10:56:01 -0700
committerGitHub <noreply@github.com>2021-03-16 10:56:01 -0700
commitd6890791897ddebf1212d3e3147bf7aeb2415b27 (patch)
tree51c69ba48a7550b6a7660e2488b4b39cbedba539 /src/base/output.cpp
parent0d3ea6f2dcaf80d386c7765ee8a708c18e3ed574 (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/base/output.cpp')
-rw-r--r--src/base/output.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/base/output.cpp b/src/base/output.cpp
index 1e6bbed98..93ebf2a70 100644
--- a/src/base/output.cpp
+++ b/src/base/output.cpp
@@ -27,18 +27,18 @@ namespace CVC4 {
null_streambuf null_sb;
ostream null_os(&null_sb);
-NullC nullCvc4Stream CVC4_PUBLIC;
+NullC nullCvc4Stream;
const std::string CVC4ostream::s_tab = " ";
const int CVC4ostream::s_indentIosIndex = ios_base::xalloc();
-DebugC DebugChannel CVC4_PUBLIC (&cout);
-WarningC WarningChannel CVC4_PUBLIC (&cerr);
-MessageC MessageChannel CVC4_PUBLIC (&cout);
-NoticeC NoticeChannel CVC4_PUBLIC (&null_os);
-ChatC ChatChannel CVC4_PUBLIC (&null_os);
-TraceC TraceChannel CVC4_PUBLIC (&cout);
+DebugC DebugChannel(&cout);
+WarningC WarningChannel(&cerr);
+MessageC MessageChannel(&cout);
+NoticeC NoticeChannel(&null_os);
+ChatC ChatChannel(&null_os);
+TraceC TraceChannel(&cout);
std::ostream DumpOutC::dump_cout(cout.rdbuf());// copy cout stream buffer
-DumpOutC DumpOutChannel CVC4_PUBLIC (&DumpOutC::dump_cout);
+DumpOutC DumpOutChannel(&DumpOutC::dump_cout);
}/* CVC4 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback