object.cc (13045:ccedccd0d93d) | object.cc (13085:9a64693dabcc) |
---|---|
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 --- 58 unchanged lines hidden (view full) --- 67 objects->pop_back(); 68} 69 70} // anonymous namespace 71 72Object::Object(sc_core::sc_object *_sc_obj) : Object(_sc_obj, "object") {} 73 74Object::Object(sc_core::sc_object *_sc_obj, const char *obj_name) : | 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 --- 58 unchanged lines hidden (view full) --- 67 objects->pop_back(); 68} 69 70} // anonymous namespace 71 72Object::Object(sc_core::sc_object *_sc_obj) : Object(_sc_obj, "object") {} 73 74Object::Object(sc_core::sc_object *_sc_obj, const char *obj_name) : |
75 _sc_obj(_sc_obj), _basename(obj_name), parent(nullptr) | 75 _sc_obj(_sc_obj), _basename(obj_name ? obj_name : ""), parent(nullptr) |
76{ 77 if (_basename == "") 78 _basename = "object"; 79 80 Module *p = currentModule(); 81 if (!p) 82 p = callbackModule(); 83 --- 179 unchanged lines hidden --- | 76{ 77 if (_basename == "") 78 _basename = "object"; 79 80 Module *p = currentModule(); 81 if (!p) 82 p = callbackModule(); 83 --- 179 unchanged lines hidden --- |