summaryrefslogtreecommitdiff
path: root/include/fatalerror.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
committerMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
commit7a928e2b19bddf152fd838469cc50805d4132401 (patch)
tree0a6657f4b94c27556b2f218e407f752018540d3b /include/fatalerror.h
parentae4fa5f871d937773e9facde87a32784e715e3ae (diff)
Changed default visibility for symbols in the PHP-CPP library to hidden and explicitly exported all symbols available from the public API. Moved the hiddenpointer to the zend implementation directory as it is not meant to be used publicly and not referenced anywhere from the API anyway
Diffstat (limited to 'include/fatalerror.h')
-rw-r--r--include/fatalerror.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/include/fatalerror.h b/include/fatalerror.h
index b178f25..bda717a 100644
--- a/include/fatalerror.h
+++ b/include/fatalerror.h
@@ -1,18 +1,18 @@
/**
* FatalError.h
- *
- *
+ *
+ *
* Normally, fatal errors are reported with a call to zend_error().
- *
+ *
* However, this will trigger a longjmp(), which will cause objects
* constructed in the extension not to be destructed. We use therefore
* this FatalError class, which is a normally exception that _does_
* cause objects to be destructed.
- *
+ *
* When it is caught, right before control is handed back to the Zend
* engine, it will turn the exception into a zend_error() call and
* thus a longjmp.
- *
+ *
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2014 Copernica BV
*/
@@ -25,7 +25,7 @@ namespace Php {
/**
* Class definition
*/
-class FatalError : public Exception
+class PHPCPP_EXPORT FatalError : public Exception
{
public:
/**
@@ -33,11 +33,11 @@ public:
* @param message
*/
FatalError(const std::string &message) : Exception(message) {}
-
+
/**
* Destructor
*/
- virtual ~FatalError() throw()
+ virtual ~FatalError() throw()
{
}
@@ -51,16 +51,15 @@ public:
// as exception, but it should live on as zend_error() in stead
return false;
}
-
+
/**
* Report this error as a fatal error
* @return bool
*/
virtual bool report() const override;
};
-
+
/**
* End of namespace
*/
}
-