summaryrefslogtreecommitdiffstats
path: root/include/bbs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bbs.h')
-rw-r--r--include/bbs.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/bbs.h b/include/bbs.h
index 7d2ef8d1..023ac1a2 100644
--- a/include/bbs.h
+++ b/include/bbs.h
@@ -49,5 +49,16 @@
#else
#include <limits.h>
#endif
-
+#ifdef DEBUG
+static int Sizeof(char *what,int size,char *file,int line)
+{
+ if(size==4)
+ printf("WARRNING\r\n");
+ printf("%s(%d): sizeof(%s)=%d\r\n",file,line,what,size);
+ return size;
+}
+#define SIZEOF(a) Sizeof(#a,sizeof(a),__FILE__,__LINE__)
+#else
+#define SIZEOF(a) sizeof(a)
+#endif
#endif /* INCLUDE_BBS_H */