[zeromq-dev] zmq_version

Martin Sustrik sustrik at 250bpm.com
Thu Jan 28 09:04:58 CET 2010


Steven McCoy wrote:
> Another example, libevent,
> 
> http://www.wangafu.net/~nickm/libevent-book/Ref1_libsetup.html#_detecting_the_version_of_libevent
> 
> 
> #define LIBEVENT_VERSION_NUMBER 0x02000300
> #define LIBEVENT_VERSION "0.2.0.3-alpha"
> *const* *char* *event_get_version(*void*);
> ev_uint32_t event_get_version_number(*void*);
> 
> 
> Provide #defines for compile time checks, numeric function for runtime 
> check, and string for informative display.
> 
> This means you will should to keep the micro version number rolling 
> along with whatever version suffixes you wish to use.

This seems to make sense. Any complaints, anyone?

Martin



More information about the zeromq-dev mailing list