aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/qpdf/assert_test.h
blob: 5310cdaae2c4615564a843d2da851ccb2f31e2cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Include this file to use assert in regular code for
 * debugging/strong sanity checking, knowing that the assert will be
 * disabled in release code. Use qpdf_debug_assert in the code.
 */

/* assert_debug and assert_test intentionally use the same
 * guard. Search for assert in README-MAINTAINER.
 */
#ifdef QPDF_ASSERT_H
# error "At most one qpdf/assert header may be included at most one time"
#else
# define QPDF_ASSERT_H

# ifdef NDEBUG
#  undef NDEBUG
# endif
# include <assert.h>

#endif /* QPDF_ASSERT_H */