From 2441ef11a22170499d7ae12865dc98a61230f7ed Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 23 Feb 2010 23:28:25 +0100 Subject: zmq_errno helper function added --- bindings/c/zmq.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bindings/c') diff --git a/bindings/c/zmq.h b/bindings/c/zmq.h index c6d4692..254971d 100644 --- a/bindings/c/zmq.h +++ b/bindings/c/zmq.h @@ -211,6 +211,16 @@ typedef struct ZMQ_EXPORT int zmq_poll (zmq_pollitem_t *items, int nitems, long timeout); +//////////////////////////////////////////////////////////////////////////////// +// Experimental. +//////////////////////////////////////////////////////////////////////////////// + +// This function retrieves the errno as it is known to 0MQ library. The goal +// of this function is to make the code 100% portable, including where 0MQ +// compiled with certain CRT library (on Windows) is linked to an application +// compiled with different CRT library. +int zmq_errno (); + //////////////////////////////////////////////////////////////////////////////// // Helper functions. //////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3