xref: /PHP-8.3/ext/standard/php_assert.h (revision 433ed097)
1 /*
2    +----------------------------------------------------------------------+
3    | Copyright (c) The PHP Group                                          |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | https://www.php.net/license/3_01.txt                                 |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Author: Thies C. Arntzen <thies@thieso.net>                          |
14    +----------------------------------------------------------------------+
15 */
16 
17 #ifndef PHP_ASSERT_H
18 #define PHP_ASSERT_H
19 
20 PHP_MINIT_FUNCTION(assert);
21 PHP_MSHUTDOWN_FUNCTION(assert);
22 PHP_RINIT_FUNCTION(assert);
23 PHP_RSHUTDOWN_FUNCTION(assert);
24 PHP_MINFO_FUNCTION(assert);
25 
26 enum {
27 	PHP_ASSERT_ACTIVE=1,
28 	PHP_ASSERT_CALLBACK,
29 	PHP_ASSERT_BAIL,
30 	PHP_ASSERT_WARNING,
31 	PHP_ASSERT_EXCEPTION
32 };
33 
34 extern PHPAPI zend_class_entry *assertion_error_ce;
35 
36 #endif /* PHP_ASSERT_H */
37