From 2134e864c823b456d6de0a128bb6c55d1a04aba7 Mon Sep 17 00:00:00 2001 From: James Maki Date: Fri, 23 Apr 2010 14:27:29 -0500 Subject: initial commit --- src/u_boot.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/u_boot.h (limited to 'src/u_boot.h') diff --git a/src/u_boot.h b/src/u_boot.h new file mode 100644 index 0000000..5106601 --- /dev/null +++ b/src/u_boot.h @@ -0,0 +1,19 @@ +#ifndef __U_BOOT_H +#define __U_BOOT_H + +#include "config.h" + +#if DEBUG +#define dbg(format, arg...) fprintf(stderr, "DEBUG: %s:%s:%d: " format "\n" , __FILE__ , __func__ , __LINE__ , ## arg) +#else +#define dbg(format, arg...) do {} while (0) +#endif + +#define error(format, arg...) fprintf(stderr, "ERROR: %s:%s:%d: " format "\n" , __FILE__ , __func__ , __LINE__ , ## arg) + +enum { + false, + true, +}; + +#endif /* ~__U_BOOT_H */ -- cgit v1.2.3