28 #ifndef __SYSTEMC_EXT_UTIL_SC_REPORT_HANDLER_HH__ 29 #define __SYSTEMC_EXT_UTIL_SC_REPORT_HANDLER_HH__ 68 const char *file,
int line);
70 int verbosity,
const char *file,
int line);
87 static int get_count(
const char *msg_type);
96 static sc_actions
suppress(sc_actions);
98 static sc_actions
force(sc_actions);
99 static sc_actions
force();
115 #define SC_REPORT_INFO_VERB(msg_type, msg, verbosity) \ 116 ::sc_core::sc_report_handler::report( \ 117 ::sc_core::SC_INFO, msg_type, msg, verbosity, __FILE__, __LINE__) 119 #define SC_REPORT_INFO(msg_type, msg) \ 120 ::sc_core::sc_report_handler::report( \ 121 ::sc_core::SC_INFO, msg_type, msg, __FILE__, __LINE__) 123 #define SC_REPORT_WARNING(msg_type, msg) \ 124 ::sc_core::sc_report_handler::report( \ 125 ::sc_core::SC_WARNING, msg_type, msg, __FILE__, __LINE__) 127 #define SC_REPORT_ERROR(msg_type, msg) \ 128 ::sc_core::sc_report_handler::report( \ 129 ::sc_core::SC_ERROR, msg_type, msg, __FILE__, __LINE__) 131 #define SC_REPORT_FATAL(msg_type, msg) \ 132 ::sc_core::sc_report_handler::report( \ 133 ::sc_core::SC_FATAL, msg_type, msg, __FILE__, __LINE__) 135 #define sc_assert(expr) \ 136 ((void)((expr) ? 0 : (SC_REPORT_FATAL( \ 137 ::sc_core::SC_ID_ASSERTION_FAILED_, #expr), 0))) 149 #endif //__SYSTEMC_EXT_UTIL_SC_REPORT_HANDLER_HH__
static sc_actions suppress()
static int stop_after(sc_severity, int limit=-1)
static sc_actions set_catch_actions(sc_actions)
static bool set_log_file_name(const char *)
static int get_count(sc_severity)
void sc_stop_here(const char *msg_type, sc_severity)
const std::string sc_report_compose_message(const sc_report &)
static int get_verbosity_level()
static sc_report * get_cached_report()
void sc_interrupt_here(const char *msg_type, sc_severity)
static const char * get_log_file_name()
static int set_verbosity_level(int)
bool sc_report_close_default_log()
static sc_actions force()
static void default_handler(const sc_report &, const sc_actions &)
void(* sc_report_handler_proc)(const sc_report &, const sc_actions &)
static sc_actions get_new_action_id()
static sc_actions set_actions(sc_severity, sc_actions=SC_UNSPECIFIED)
BitfieldType< SegDescriptorLimit > limit
static void report(sc_severity, const char *msg_type, const char *msg, const char *file, int line)
static void set_handler(sc_report_handler_proc)
static sc_actions get_catch_actions()
static void clear_cached_report()