diff options
author | wtc%netscape.com <devnull@localhost> | 2001-12-27 00:57:48 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2001-12-27 00:57:48 +0000 |
commit | 57c2cc83bfe90fe3b51c3c8ba1e0cd8a7dc9636a (patch) | |
tree | 3d814ccb3d05c34f54e5c872b4d708d298a2abae /pr | |
parent | 0e657e43684ce78d9646073c93d9e614e82d3564 (diff) | |
download | nspr-hg-57c2cc83bfe90fe3b51c3c8ba1e0cd8a7dc9636a.tar.gz |
Bugzilla bug 110869: defining the FORCE_PR_ASSERT macro allows one to
use PR_ASSERT in optimized builds.
Diffstat (limited to 'pr')
-rw-r--r-- | pr/include/prlog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pr/include/prlog.h b/pr/include/prlog.h index b7a7b5a0..2f0ca9ab 100644 --- a/pr/include/prlog.h +++ b/pr/include/prlog.h @@ -232,7 +232,7 @@ NSPR_API(void) PR_LogFlush(void); #endif /* NO_NSPR_10_SUPPORT */ -#if defined(DEBUG) +#if defined(DEBUG) || defined(FORCE_PR_ASSERT) NSPR_API(void) PR_Assert(const char *s, const char *file, PRIntn ln); #define PR_ASSERT(_expr) \ @@ -246,7 +246,7 @@ NSPR_API(void) PR_Assert(const char *s, const char *file, PRIntn ln); #define PR_ASSERT(expr) ((void) 0) #define PR_NOT_REACHED(reasonStr) -#endif /* defined(DEBUG) */ +#endif /* defined(DEBUG) || defined(FORCE_PR_ASSERT) */ PR_END_EXTERN_C |