aboutsummaryrefslogtreecommitdiff
path: root/src/include/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/assert.h')
-rw-r--r--src/include/assert.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/include/assert.h b/src/include/assert.h
index 9f624a931f..966449b286 100644
--- a/src/include/assert.h
+++ b/src/include/assert.h
@@ -22,31 +22,6 @@
#include <console/console.h>
-#if defined(__PRE_RAM__) && !CONFIG_CACHE_AS_RAM
-
-/* ROMCC versions */
-#define ASSERT(x) { \
- if(!(x)) { \
- print_emerg("ASSERTION FAILED: file '"); \
- print_emerg(__FILE__); \
- print_emerg("', line 0x"); \
- print_debug_hex32(__LINE__); \
- print_emerg("\n"); \
- /* die(""); */ \
- } \
-}
-
-#define BUG() { \
- print_emerg("BUG ENCOUNTERED: SYSTEM HALTED at file '");\
- print_emerg(__FILE__); \
- print_emerg("', line 0x"); \
- print_debug_hex32(__LINE__); \
- print_emerg("\n"); \
- /* die(""); */ \
-}
-
-#else
-
/* GCC and CAR versions */
#define ASSERT(x) { \
if (!(x)) { \
@@ -61,8 +36,6 @@
/* die(""); */ \
}
-#endif /* defined(__PRE_RAM__) && !CONFIG_CACHE_AS_RAM */
-
#define assert(statement) ASSERT(statement)
#endif // __ASSERT_H__