From 448b1b873537bed4b616c284ba75ce9392f838a9 Mon Sep 17 00:00:00 2001 From: Toon Schoenmakers Date: Thu, 17 Sep 2015 10:47:53 +0200 Subject: Added support for passing the error types in the set_error_handler --- include/call.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/call.h') diff --git a/include/call.h b/include/call.h index 80b3c74..55e9ed6 100644 --- a/include/call.h +++ b/include/call.h @@ -47,7 +47,7 @@ inline PHPCPP_EXPORT Value require(const std::string &filename) { return requ extern PHPCPP_EXPORT Value require_once(const char *filename); inline PHPCPP_EXPORT Value require_once(const std::string &filename) { return require_once(filename.c_str()); } extern PHPCPP_EXPORT Value set_exception_handler(const std::function &handler); -extern PHPCPP_EXPORT Value set_error_handler(const std::function &handler); +extern PHPCPP_EXPORT Value set_error_handler(const std::function &handler, Error error = Error::All); extern PHPCPP_EXPORT const char *sapi_name(); /** -- cgit v1.2.3