gen: Add "assert" in assert.h.
Typically assert.h should provide assert(). 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> (cherry picked from commit 3990584ac8e1ec9b3838bd9dfdf8a9cb2d20fbd0) Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com> Signed-off-by: Bruce Griffith <Bruce.Griffith@se-eng.com> Reviewed-on: http://review.coreboot.org/6961 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
6eaaafa2c3
commit
34c5933a66
|
@ -20,6 +20,8 @@
|
||||||
#ifndef __ASSERT_H__
|
#ifndef __ASSERT_H__
|
||||||
#define __ASSERT_H__
|
#define __ASSERT_H__
|
||||||
|
|
||||||
|
#include <console/console.h>
|
||||||
|
|
||||||
#if defined(__PRE_RAM__) && !CONFIG_CACHE_AS_RAM
|
#if defined(__PRE_RAM__) && !CONFIG_CACHE_AS_RAM
|
||||||
|
|
||||||
/* ROMCC versions */
|
/* ROMCC versions */
|
||||||
|
@ -59,6 +61,8 @@
|
||||||
/* die(""); */ \
|
/* die(""); */ \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* defined(__PRE_RAM__) && !CONFIG_CACHE_AS_RAM */
|
||||||
|
|
||||||
|
#define assert(statement) ASSERT(statement)
|
||||||
|
|
||||||
#endif // __ASSERT_H__
|
#endif // __ASSERT_H__
|
||||||
|
|
Loading…
Reference in New Issue