File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ struct ScLogger {
412
412
#define SCP_LOGGER_NAME (x ) CAT(_m_scp_log_level_cache_, x)
413
413
414
414
/* User interface macros */
415
- #define SCMOD this ->name ()
415
+ #define SCMOD this ->sc_core::sc_module:: name ()
416
416
#define SCP_LOGGER (...) \
417
417
scp::scp_logger_cache IIF (IS_PAREN(FIRST_ARG(__VA_ARGS__)))( \
418
418
SCP_LOGGER_NAME (EXPAND(FIRST_ARG FIRST_ARG (__VA_ARGS__))), \
@@ -430,7 +430,8 @@ struct ScLogger {
430
430
class call_sc_name_fn
431
431
{
432
432
template <class T >
433
- static auto test (T* p) -> decltype(p->name (), std::true_type());
433
+ static auto test (T* p)
434
+ -> decltype(p->sc_core::sc_module::name (), std::true_type());
434
435
template <class T >
435
436
static auto test (...) -> decltype(std::false_type());
436
437
@@ -442,7 +443,7 @@ class call_sc_name_fn
442
443
template <class TYPE >
443
444
auto operator ()(TYPE* p) const
444
445
-> std::enable_if_t<has_method<TYPE>, const char*> {
445
- return p->name ();
446
+ return p->sc_core ::sc_module:: name ();
446
447
}
447
448
448
449
// define a function IF NOT the method exists
You can’t perform that action at this time.
0 commit comments