diff options
author | Roland Eischer <r.eischer@certec.at> | 2015-01-26 09:23:36 +0100 |
---|---|---|
committer | Roland Eischer <r.eischer@certec.at> | 2015-01-26 09:25:58 +0100 |
commit | 47855f1c68a282903a8db470697915bd419ec17c (patch) | |
tree | 29c8eee83ee64edfdf904a55399cf67f0d407078 /include/script.h | |
parent | 30eff69a10898dd9b2fb10ed07ae8c68458a5ad2 (diff) |
Added macro wrapper for noexcept
- Added macro wrapper for noexcept to support MSVC compiler.
Diffstat (limited to 'include/script.h')
-rw-r--r-- | include/script.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/script.h b/include/script.h index fb546ea..6aee034 100644 --- a/include/script.h +++ b/include/script.h @@ -42,33 +42,33 @@ public: * @param source PHP source code to be evaluated * @param size Length of the source code */ - Script(const char *name, const char *source, size_t size) noexcept; + Script(const char *name, const char *source, size_t size) _NOEXCEPT; /** * Alternative constructor without a size * @param name Name of the PHP script * @param source PHP source code to be evaluated */ - Script(const char *name, const char *source) noexcept : Script(name, source, ::strlen(source)) {} + Script(const char *name, const char *source) _NOEXCEPT : Script(name, source, ::strlen(source)) {} /** * Alternative constructor without a name * @param source PHP source code to be evaluated * @param size Length of the source code */ - Script(const char *source, size_t size) noexcept : Script("Unknown", source, size) {} + Script(const char *source, size_t size) _NOEXCEPT : Script("Unknown", source, size) {} /** * Alternative constructor without a name and without a size * @param source PHP source code to be evaluated */ - Script(const char *source) noexcept : Script("Unknown", source, ::strlen(source)) {} + Script(const char *source) _NOEXCEPT : Script("Unknown", source, ::strlen(source)) {} /** * Constructor based on a std::string * @param source PHP source code to be evaluated */ - Script(const std::string &source) noexcept : Script("Unknown", source.c_str(), source.size()) {} + Script(const std::string &source) _NOEXCEPT : Script("Unknown", source.c_str(), source.size()) {} /** * Destructor |