4 #ifdef NET_SNMP_USE_ASSERT
7 # include <net-snmp/library/snmp_logging.h>
12 * MACROs don't need extern "C"
17 #ifdef NET_SNMP_USE_ASSERT
18 /* void netsnmp_assert( int );*/
19 # define netsnmp_assert(x) assert( x )
21 # ifdef HAVE_CPP_UNDERBAR_FUNCTION_DEFINED
22 # define netsnmp_assert(x) do { \
26 snmp_log(LOG_ERR,"netsnmp_assert %s failed %s:%d %s()\n", \
27 __STRING(x),__FILE__,__LINE__,__FUNCTION__); \
30 # define netsnmp_assert(x) do { \
34 snmp_log(LOG_ERR,"netsnmp_assert %s failed %s:%d\n", \
35 __STRING(x),__FILE__,__LINE__); \
42 #define netsnmp_assert(x)
47 #endif /* SNMP_ASSERT_H */