summaryrefslogtreecommitdiff
path: root/src/parser/parser_exception.h
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/parser/parser_exception.h
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/parser/parser_exception.h')
-rw-r--r--src/parser/parser_exception.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/parser/parser_exception.h b/src/parser/parser_exception.h
index 4c6341d43..8b6bd3b50 100644
--- a/src/parser/parser_exception.h
+++ b/src/parser/parser_exception.h
@@ -24,11 +24,13 @@
#include <sstream>
#include "base/exception.h"
+#include "cvc4_export.h"
namespace CVC4 {
namespace parser {
-class CVC4_PUBLIC ParserException : public Exception {
+class CVC4_EXPORT ParserException : public Exception
+{
public:
// Constructors
ParserException() : d_filename(), d_line(0), d_column(0) {}
@@ -74,9 +76,10 @@ class CVC4_PUBLIC ParserException : public Exception {
std::string d_filename;
unsigned long d_line;
unsigned long d_column;
-};/* class ParserException */
+}; /* class ParserException */
-class CVC4_PUBLIC ParserEndOfFileException : public ParserException {
+class ParserEndOfFileException : public ParserException
+{
public:
// Constructors same as ParserException's
@@ -94,7 +97,7 @@ class CVC4_PUBLIC ParserEndOfFileException : public ParserException {
{
}
-};/* class ParserEndOfFileException */
+}; /* class ParserEndOfFileException */
}/* CVC4::parser namespace */
}/* CVC4 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback