diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2015-03-26 16:00:10 +0100 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2015-03-26 16:00:10 +0100 |
commit | 7a928e2b19bddf152fd838469cc50805d4132401 (patch) | |
tree | 0a6657f4b94c27556b2f218e407f752018540d3b /include/exception.h | |
parent | ae4fa5f871d937773e9facde87a32784e715e3ae (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/exception.h')
-rw-r--r-- | include/exception.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/include/exception.h b/include/exception.h index 15e92bc..55601c2 100644 --- a/include/exception.h +++ b/include/exception.h @@ -1,7 +1,7 @@ /** * Exception.h * Implementation of Php Exceptions. - * + * * @author Jasper van Eck <jasper.vaneck@copernica.com> * @copyright 2013, 2014 Copernica BV */ @@ -12,10 +12,10 @@ */ namespace Php { -/** +/** * Class definition */ -class Exception : public std::exception +class PHPCPP_EXPORT Exception : public std::exception { private: /** @@ -23,31 +23,31 @@ private: * @var char* */ std::string _message; - + /** * The PHP exception code * @var int */ int _code; - + /** * Has this exception been processed by native C++ code? * @var bool */ bool _processed = false; - + public: /** * Constructor * @param &string */ Exception(const std::string &message, int code = 0) : std::exception(), _message(message), _code(code) {} - + /** * Destructor */ virtual ~Exception() throw() {} - + /** * Overridden what method * @return const char * @@ -56,7 +56,7 @@ public: { return _message.c_str(); } - + /** * Returns the message of the exception. * @return &string @@ -75,7 +75,7 @@ public: // yes, it is native return true; } - + /** * Report this error as a fatal error * @return bool @@ -91,5 +91,3 @@ public: * End of namespace */ } - - |