00001 /* 00002 ** assert.h for lseos in lseos-lib/libc/sysinterf 00003 ** 00004 ** Copyright (c)2004 Vianney Rancurel 00005 ** Login <vianney@epita.fr> 00006 ** 00007 ** Started on Fri Sep 19 19:55:04 2003 Vianney Rancurel 00008 ** Last update Mon Nov 29 18:43:57 2004 Vianney Rancurel 00009 */ 00010 #ifndef __SYSINTERF_ASSERT_H__ 00011 #define __SYSINTERF_ASSERT_H__ 1 00012 00013 #ifdef __KERNEL__ 00014 # define assert(e) ((e) ? (void)0 : __kassert(__FILE__, __LINE__, #e)) 00015 #else 00016 # define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e)) 00017 #endif 00018 00019 /* PROTO assert.c */ 00020 /* assert.c */ 00021 void __assert(char *file, int line, char *error); 00022 void __kassert(char *file, int line, char *error); 00023 #endif