abort_prog.h

Go to the documentation of this file.
00001 
00006 #if !defined(INC_UTIL_ABORT_PROG_H)
00007 
00008 #define INC_UTIL_ABORT_PROG_H
00009 
00010 #include <stdio.h>
00011 
00012 #include <oski/common.h>
00013 
00024 #define ABORT(cond, method, err) if(cond) { \
00025         fprintf( stderr, "*** Error condition '%s' detected ***\n", \
00026             MACRO_TO_STRING(cond) ); \
00027         OSKI_ERR(method, err); \
00028         exit(1); \
00029     }
00030 
00031 #endif
00032 
00033 /* eof */

Generated on Wed Sep 19 16:41:18 2007 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.4.6