diff options
Diffstat (limited to 'sbe/sbefw')
-rw-r--r-- | sbe/sbefw/assert.h | 2 | ||||
-rw-r--r-- | sbe/sbefw/sbeutil.H | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/sbe/sbefw/assert.h b/sbe/sbefw/assert.h index bd1dbe99..e7e128a2 100644 --- a/sbe/sbefw/assert.h +++ b/sbe/sbefw/assert.h @@ -6,6 +6,7 @@ #ifndef SBE_ASSERT_H #define SBE_ASSERT_H #include "sbetrace.H" +#include "sbeutil.H" //@TODO via RTC 129166 //inject exception to halt SBE. Also see if we can use some @@ -15,6 +16,7 @@ if( !(expr )) \ { \ SBE_ERROR("assertion failed: "#expr); \ + PK_PANIC(SBE::PANIC_ASSERT); \ } \ #else diff --git a/sbe/sbefw/sbeutil.H b/sbe/sbefw/sbeutil.H new file mode 100644 index 00000000..7ce440f9 --- /dev/null +++ b/sbe/sbefw/sbeutil.H @@ -0,0 +1,15 @@ +#ifndef SBE_UTIL_H +#define SBE_UTIL_H +#include "pk.h" +#include "pk_api.h" + +namespace SBE +{ + +enum +{ + PANIC_ASSERT = PK_APP_OFFSET_SBE + 1 +}; + +} // namespace SBE +#endif //SBE_UTIL_H |