gen: Add "assert" in assert.h.
Typically assert.h should provide assert(). BUG=none TEST=emerge-nyan chromeos-coreboot-nyan # pass. Change-Id: I465f4a616b212f7b00d445c575866b13eecfa6fb Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/187410 Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
31529d6d96
commit
3990584ac8
1 changed files with 5 additions and 1 deletions
|
|
@ -20,6 +20,8 @@
|
|||
#ifndef __ASSERT_H__
|
||||
#define __ASSERT_H__
|
||||
|
||||
#include <console/console.h>
|
||||
|
||||
#if defined(__PRE_RAM__) && !CONFIG_CACHE_AS_RAM
|
||||
|
||||
/* ROMCC versions */
|
||||
|
|
@ -59,6 +61,8 @@
|
|||
/* die(""); */ \
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* defined(__PRE_RAM__) && !CONFIG_CACHE_AS_RAM */
|
||||
|
||||
#define assert(statement) ASSERT(statement)
|
||||
|
||||
#endif // __ASSERT_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue