Go to the documentation of this file.
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);
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__
@ SC_DEFAULT_ERROR_ACTIONS
static int get_count(sc_severity)
static sc_actions set_catch_actions(sc_actions)
const std::string sc_report_compose_message(const sc_report &)
static sc_actions set_actions(sc_severity, sc_actions=SC_UNSPECIFIED)
static void default_handler(const sc_report &, const sc_actions &)
bool sc_report_close_default_log()
static sc_actions force()
static void clear_cached_report()
static sc_actions suppress()
static int stop_after(sc_severity, int limit=-1)
static sc_actions get_catch_actions()
@ SC_DEFAULT_INFO_ACTIONS
static int set_verbosity_level(int)
static void report(sc_severity, const char *msg_type, const char *msg, const char *file, int line)
void sc_stop_here(const char *msg_type, sc_severity)
@ SC_DEFAULT_FATAL_ACTIONS
void(* sc_report_handler_proc)(const sc_report &, const sc_actions &)
static sc_actions get_new_action_id()
static void set_handler(sc_report_handler_proc)
static int get_verbosity_level()
void sc_interrupt_here(const char *msg_type, sc_severity)
BitfieldType< SegDescriptorLimit > limit
static sc_report * get_cached_report()
static const char * get_log_file_name()
static bool set_log_file_name(const char *)
@ SC_DEFAULT_WARNING_ACTIONS
Generated on Wed Sep 30 2020 14:02:16 for gem5 by doxygen 1.8.17