report.hh (13316:0423798f1a05) | report.hh (13323:1cfcaaf573b9) |
---|---|
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 --- 96 unchanged lines hidden (view full) --- 105extern sc_core::sc_report_handler_proc reportHandlerProc; 106 107extern std::unique_ptr<sc_core::sc_report> globalReportCache; 108 109extern bool reportWarningsAsErrors; 110 111struct DefaultReportMessages 112{ | 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 --- 96 unchanged lines hidden (view full) --- 105extern sc_core::sc_report_handler_proc reportHandlerProc; 106 107extern std::unique_ptr<sc_core::sc_report> globalReportCache; 108 109extern bool reportWarningsAsErrors; 110 111struct DefaultReportMessages 112{ |
113 protected: 114 static DefaultReportMessages *&top(); 115 DefaultReportMessages *next; 116 117 std::initializer_list<std::pair<int, const char *>> msgs; 118 void install(); 119 |
|
113 public: 114 DefaultReportMessages(std::initializer_list<std::pair<int, const char *>>); | 120 public: 121 DefaultReportMessages(std::initializer_list<std::pair<int, const char *>>); |
122 123 static void installAll(); |
|
115}; 116 117} // namespace sc_gem5 118 119#endif // __SYSTEMC_UTILS_REPORT_HH__ | 124}; 125 126} // namespace sc_gem5 127 128#endif // __SYSTEMC_UTILS_REPORT_HH__ |