stdlib/assert.h File Reference

#include <stdio.h>
#include "../backtrace.c"

Go to the source code of this file.

Defines

#define ASSERT(condition, fmt_str...)

Define Documentation

#define ASSERT ( condition,
fmt_str...   ) 
Value:
if (NPS_ASSERT_SWITCH) {                            \
        if (!(condition)) {                             \
            fprintf(stderr,"%s:%d ",__FILE__,__LINE__); \
            fprintf(stderr,##fmt_str);                  \
            BACKTRACE;                                  \
            abort();                                   \
        }                                               \
    }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sun Sep 11 09:40:46 2011 for NPSML by  doxygen 1.6.3