The _DEBUG preprocessor definition is typically only set on Windows. (e.g., see https://stackoverflow.com/questions/2290509/debug-vs-ndebug/29253284#29253284)

This commit is contained in:
Bill Torpey 2020-11-02 16:58:14 -05:00
parent b2a0842063
commit 57e9551744

View File

@ -136,7 +136,7 @@ void zmq::worker_poller_base_t::start (const char *name_)
void zmq::worker_poller_base_t::check_thread () const
{
#ifdef _DEBUG
#ifndef NDEBUG
zmq_assert (!_worker.get_started () || _worker.is_current_thread ());
#endif
}