Deleted Added
sdiff udiff text old ( 13157:ca4c4e2552f2 ) new ( 13313:306a97d3b040 )
full compact
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 18 unchanged lines hidden (view full) ---

27 * Authors: Gabe Black
28 */
29
30#include <cstring>
31
32#include "base/logging.hh"
33#include "systemc/ext/utils/sc_report.hh"
34#include "systemc/ext/utils/sc_report_handler.hh"
35
36namespace sc_core
37{
38
39sc_report::sc_report(sc_severity _severity, const char *msg_type,
40 const char *msg, int _verbosity, const char *_fileName,
41 int _lineNumber, sc_time _time, const char *_processName, int _id) :
42 _severity(_severity), _msgType(msg_type), _msg(msg),

--- 39 unchanged lines hidden (view full) ---

82sc_report::what() const throw()
83{
84 return _what.c_str();
85}
86
87const char *
88sc_report::get_message(int id)
89{
90 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
91 return "";
92}
93
94bool
95sc_report::is_suppressed(int id)
96{
97 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
98 return false;
99}
100
101void
102sc_report::make_warnings_errors(bool)
103{
104 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
105}
106
107void
108sc_report::register_id(int id, const char *msg)
109{
110 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
111}
112
113void
114sc_report::suppress_id(int id, bool)
115{
116 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
117}
118
119void
120sc_report::suppress_infos(bool)
121{
122 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
123}
124
125void
126sc_report::suppress_warnings(bool)
127{
128 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
129}
130
131void
132sc_abort()
133{
134 panic("simulation aborted");
135}
136
137} // namespace sc_core