From ed0e2f7a6fe721175b80f6397c9abd5c0080033f Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 24 May 2013 14:38:36 +0200 Subject: Added log_assert() api --- kernel/celltypes.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'kernel/celltypes.h') diff --git a/kernel/celltypes.h b/kernel/celltypes.h index bf5ef4b38..cc84251c3 100644 --- a/kernel/celltypes.h +++ b/kernel/celltypes.h @@ -24,6 +24,9 @@ #include #include +#include +#include + struct CellTypes { std::set cell_types; @@ -225,8 +228,7 @@ struct CellTypes if (type == "$_XOR_") return const_xor(arg1, arg2, false, false, 1); - assert(!"Called CellType.eval() with unsupported cell type!"); - abort(); + log_abort(); } static RTLIL::Const eval(RTLIL::Cell *cell, const RTLIL::Const &arg1, const RTLIL::Const &arg2) -- cgit v1.2.3