mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Include/enable assert.h/assert() when it is available
This commit is contained in:
parent
aba912e66f
commit
cbc1cd802c
3 changed files with 14 additions and 1 deletions
11
main/php.h
11
main/php.h
|
@ -63,7 +63,16 @@
|
|||
|
||||
#include "php_regex.h"
|
||||
|
||||
|
||||
#if HAVE_ASSERT_H
|
||||
#if PHP_DEBUG
|
||||
#undef NDEBUG
|
||||
#else
|
||||
#define NDEBUG
|
||||
#endif
|
||||
#include <assert.h>
|
||||
#else /* HAVE_ASSERT_H */
|
||||
#define assert(expr) ((void) (0))
|
||||
#endif /* HAVE_ASSERT_H */
|
||||
|
||||
#define APACHE 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue