X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fydirectenv.h;h=f2bb496cba86418bdcf7f4ea7c9d8d2cee4dc42f;hp=fbf460664229e1034cd58c80f473d360e7105c29;hb=8b348464b712730cbc18391924d805c1cab7b9ff;hpb=2369fadda0bee21c2ddb7a7596be7a5df578757e diff --git a/direct/ydirectenv.h b/direct/ydirectenv.h index fbf4606..f2bb496 100644 --- a/direct/ydirectenv.h +++ b/direct/ydirectenv.h @@ -28,9 +28,9 @@ #include "yaffs_osglue.h" #include "yaffs_hweight.h" -#include "assert.h" -#define BUG() assert(0) -//#define BUG() do { *((int *)0) =1;} while(0) +void yaffs_bug_fn(const char *file_name, int line_no); + +#define BUG() do { yaffs_bug_fn(__FILE__, __LINE__); } while (0) #define YCHAR char