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:
Hung-Te Lin 2014-02-21 16:22:52 +08:00 committed by Mike Loptien
parent 6eaaafa2c3
commit 34c5933a66
1 changed files with 5 additions and 1 deletions

View File

@ -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__