3 * Copyright 1999 The OpenLDAP Foundation, Redwood City, California, USA
6 * Redistribution and use in source and binary forms are permitted only
7 * as authorized by the OpenLDAP Public License. A copy of this
8 * license is available at http://www.OpenLDAP.org/license.html or
9 * in file LICENSE in the top-level directory of the distribution.
17 #if defined( HAVE_ASSERT_H ) || defined( STDC_HEADERS )
21 #define LDAP_NEED_ASSERT 1
24 * no assert()... must be a very old compiler.
25 * create a replacement and hope it works
28 void lber_pvt_assert(char* file, int line, char* test);
29 #define assert(test) \
32 : lber_pvt_assert( __FILE__, __LINE__, LDAP_STRING(test)) )
38 #define assert(test) ((void)0)
41 #endif /* _AC_ASSERT_H */