1 #ifndef _MINIX_DEBUG_H 2 #define _MINIX_DEBUG_H 1 3 4 /* For reminders of things to be fixed. */ 5 #define FIXME(str) { static int fixme_warned = 0; \ 6 if(!fixme_warned) { \ 7 printf("FIXME: %s:%d: %s\n", __FILE__, __LINE__, str);\ 8 fixme_warned = 1; \ 9 } \ 10 } 11 12 #define NOT_REACHABLE do { \ 13 panic("NOT_REACHABLE at %s:%d", __FILE__, __LINE__); \ 14 for(;;); \ 15 } while(0) 16 17 #define NOT_IMPLEMENTED do { \ 18 panic("NOT_IMPLEMENTED at %s:%d", __FILE__, __LINE__); \ 19 } while(0) 20 21 #endif /* _MINIX_DEBUG_H */ 22 23