src/assert.h

/* [<][>]
[^][v][top][bottom][index][help] */

FUNCTIONS

This source file includes following functions.
  1. assert

/* $Id: assert.h,v 1.1.1.1 1998/08/19 11:09:27 proff Exp $
 * $Copyright$
 */

#ifndef ASSERT_H
#define ASSERT_H

#define assert(x) \
/* [<][>][^][v][top][bottom][index][help] */
do\
{\
        if (!(x)){\
                syslog(LOG_ERR, "%s:%d failed assertion: %s\n", __FILE__, __LINE__, #x);\
                ncExit(-1);\
            }\
} while (0)

#endif /* ASSERT_H */

/* [<][>][^][v][top][bottom][index][help] */