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 |
120 public: 121 DefaultReportMessages(std::initializer_list<std::pair<int, const char *>>); |
122 123 static void installAll(); |
124}; 125 126} // namespace sc_gem5 127 128#endif // __SYSTEMC_UTILS_REPORT_HH__ |