summaryrefslogtreecommitdiff
path: root/screen.h
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2011-09-03 14:05:21 +0200
committerAxel Beckert <abe@deuxchevaux.org>2011-09-03 14:05:21 +0200
commit14a4b00c9ef680b78469333291270e4c276f100d (patch)
tree6479193bac66d70af7f7b8133498b4d61a0fd29b /screen.h
parent0636e9ecb5a32db4d4520f50a20652faa825feaf (diff)
downloadscreen-14a4b00c9ef680b78469333291270e4c276f100d.tar.gz
Imported Upstream version 3.7.4upstream/3.7.4
Diffstat (limited to 'screen.h')
-rw-r--r--screen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen.h b/screen.h
index ba9040b..72b6697 100644
--- a/screen.h
+++ b/screen.h
@@ -64,9 +64,9 @@
#ifndef NOASSERT
# if defined(__STDC__)
-# define ASSERT(lousy_cpp) {if (!(lousy_cpp)) {debug2("ASSERT("#lousy_cpp")ion failed file %s line %d\n", __FILE__, __LINE__);abort();}}
+# define ASSERT(lousy_cpp) do {if (!(lousy_cpp)) {if (!dfp) opendebug(0, 1);debug2("ASSERT("#lousy_cpp") failed file %s line %d\n", __FILE__, __LINE__);abort();}} while (0)
# else
-# define ASSERT(lousy_cpp) {if (!(lousy_cpp)) {debug2("ASSERT(lousy_cpp)ion failed file %s line %d\n", __FILE__, __LINE__);abort();}}
+# define ASSERT(lousy_cpp) do {if (!(lousy_cpp)) {if (!dfp) opendebug(0, 1);debug2("ASSERT(lousy_cpp) failed file %s line %d\n", __FILE__, __LINE__);abort();}} while (0)
# endif
#else
# define ASSERT(lousy_cpp) {;}