sc_interface.cc (12837:413a7b490b1b) | sc_interface.cc (13041:ffcb5efb97d7) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * 27 * Authors: Gabe Black 28 */ 29 30#include "base/logging.hh" | 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 --- 14 unchanged lines hidden (view full) --- 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * 27 * Authors: Gabe Black 28 */ 29 30#include "base/logging.hh" |
31#include "systemc/ext/core/sc_event.hh" |
|
31#include "systemc/ext/core/sc_interface.hh" 32 33namespace sc_core 34{ 35 | 32#include "systemc/ext/core/sc_interface.hh" 33 34namespace sc_core 35{ 36 |
36void 37sc_interface::register_port(sc_port_base &, const char *) 38{ 39 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 40} 41 | |
42const sc_event & 43sc_interface::default_event() const 44{ | 37const sc_event & 38sc_interface::default_event() const 39{ |
45 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 46 return *(sc_event *)nullptr; | 40 static sc_event dummy; 41 return dummy; |
47} 48 | 42} 43 |
49sc_interface::~sc_interface() 50{ 51 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 52} 53 54sc_interface::sc_interface() 55{ 56 warn("%s not implemented.\n", __PRETTY_FUNCTION__); 57} 58 | |
59} // namespace sc_core | 44} // namespace sc_core |