summaryrefslogtreecommitdiff
path: root/src/err.cpp
diff options
context:
space:
mode:
authorMartin Lucina <martin@lucina.net>2012-01-23 09:00:28 +0100
committerMartin Lucina <martin@lucina.net>2012-01-23 09:00:28 +0100
commit4016b657973bba87caf75168ba70aaa85d556487 (patch)
treec2abaf9284f55964bea72a0b76f6b79070335858 /src/err.cpp
parent978e33ba253a997b41b331b449b474a5cee7bccc (diff)
Imported Upstream version 2.1.11upstream/2.1.11
Diffstat (limited to 'src/err.cpp')
-rw-r--r--src/err.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/err.cpp b/src/err.cpp
index d280487..ddc08ee 100644
--- a/src/err.cpp
+++ b/src/err.cpp
@@ -64,6 +64,19 @@ const char *zmq::errno_to_string (int errno_)
}
}
+void zmq::zmq_abort(const char *errmsg_)
+{
+#if defined ZMQ_HAVE_WINDOWS
+
+ // Raise STATUS_FATAL_APP_EXIT.
+ ULONG_PTR extra_info [1];
+ extra_info [0] = (ULONG_PTR) errmsg_;
+ RaiseException (0x40000015, EXCEPTION_NONCONTINUABLE, 1, extra_info);
+#else
+ abort ();
+#endif
+}
+
#ifdef ZMQ_HAVE_WINDOWS
const char *zmq::wsa_error()