diff options
author | Andreas Tille <tille@debian.org> | 2016-12-01 16:38:47 +0100 |
---|---|---|
committer | Andreas Tille <tille@debian.org> | 2016-12-01 16:38:47 +0100 |
commit | 9c3449b3f79213138ad1d315580af98e89d8e1b6 (patch) | |
tree | 157d2da8682da6cfb9ee28db762c9c94dcdaa98c /connect/ncbi_assert.h | |
parent | be323245ea77f0e457e3d42c83b58a82f67ca0f2 (diff) |
New upstream version 6.1.20160908
Diffstat (limited to 'connect/ncbi_assert.h')
-rw-r--r-- | connect/ncbi_assert.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/connect/ncbi_assert.h b/connect/ncbi_assert.h index afda2117..beefc2fb 100644 --- a/connect/ncbi_assert.h +++ b/connect/ncbi_assert.h @@ -1,7 +1,7 @@ #ifndef CONNECT___NCBI_ASSERT__H #define CONNECT___NCBI_ASSERT__H -/* $Id: ncbi_assert.h,v 1.4 2009/01/22 17:59:35 kazimird Exp $ +/* $Id: ncbi_assert.h,v 1.5 2014/10/23 15:49:34 kazimird Exp $ * =========================================================================== * * PUBLIC DOMAIN NOTICE @@ -26,7 +26,7 @@ * * =========================================================================== * - * Author: Anton Lavrentiev + * Author: Denis Vakatov * * File Description: * Run-time debugging @@ -41,9 +41,11 @@ #if !defined(NDEBUG) && !defined(_DEBUG) # define NDEBUG #endif + #include <assert.h> + #if defined(NDEBUG) -# define verify(expr) (void)(expr) +# define verify(expr) while ( expr ) break #else # define verify(expr) assert(expr) #endif |