summaryrefslogtreecommitdiffstats
path: root/src/amd/addrlib/core
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-11-24 16:23:03 +0000
committerEric Engestrom <[email protected]>2017-12-01 13:49:42 +0000
commit13a7a2d4557a068fbf86af9eaa43b600fa8bce88 (patch)
tree23727bc807c9c30fd610940272840aa681d32ae9 /src/amd/addrlib/core
parentd5559292394f0e9b1c682baca05f81366fb389af (diff)
amd: remove always-true BRAHMA_BUILD define
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/addrlib/core')
-rw-r--r--src/amd/addrlib/core/addrcommon.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/amd/addrlib/core/addrcommon.h b/src/amd/addrlib/core/addrcommon.h
index 62f8ac61618..99bb62e77f4 100644
--- a/src/amd/addrlib/core/addrcommon.h
+++ b/src/amd/addrlib/core/addrcommon.h
@@ -40,7 +40,7 @@
#include <string.h>
#include <assert.h>
-#if BRAHMA_BUILD && !defined(DEBUG)
+#if !defined(DEBUG)
#ifdef NDEBUG
#define DEBUG 0
#else
@@ -73,18 +73,7 @@
#define ADDR_ANALYSIS_ASSUME(expr) do { (void)(expr); } while (0)
#endif
-#if BRAHMA_BUILD
- #define ADDR_ASSERT(__e) assert(__e)
-#elif DEBUG
- #define ADDR_ASSERT(__e) \
- do { \
- ADDR_ANALYSIS_ASSUME(__e); \
- if ( !((__e) ? TRUE : FALSE)) { ADDR_DBG_BREAK(); } \
- } while (0)
-#else //DEBUG
- #define ADDR_ASSERT(__e) ADDR_ANALYSIS_ASSUME(__e)
-#endif //DEBUG
-
+#define ADDR_ASSERT(__e) assert(__e)
#define ADDR_ASSERT_ALWAYS() ADDR_DBG_BREAK()
#define ADDR_UNHANDLED_CASE() ADDR_ASSERT(!"Unhandled case")
#define ADDR_NOT_IMPLEMENTED() ADDR_ASSERT(!"Not implemented");