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.
19 #if defined( HAVE_ASSERT_H ) || defined( STDC_HEADERS )
23 #define LDAP_NEED_ASSERT 1
26 * no assert()... must be a very old compiler.
27 * create a replacement and hope it works
30 LDAP_F(void) ber_pvt_assert LDAP_F((
31 char* file, int line, char* test));
33 #define assert(test) \
36 : ber_pvt_assert( __FILE__, __LINE__, LDAP_STRING(test)) )
42 #define assert(test) ((void)0)
45 #endif /* _AC_ASSERT_H */