Skip to content

Commit ef687d8

Browse files
committed
[TCling] Substitute ClassInfo_IsEnum with InterOp API
Test a fix for #10454
1 parent 2e6d9b9 commit ef687d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/metacling/src/TCling.cxx

+5-1
Original file line numberDiff line numberDiff line change
@@ -8313,7 +8313,11 @@ bool TCling::ClassInfo_IsBase(ClassInfo_t* cinfo, const char* name) const
83138313

83148314
bool TCling::ClassInfo_IsEnum(const char* name) const
83158315
{
8316-
return TClingClassInfo::IsEnum(GetInterpreterImpl(), name);
8316+
// return TClingClassInfo::IsEnum(GetInterpreterImpl(), name);
8317+
if (auto type = Cpp::GetType(name)) {
8318+
return Cpp::IsEnumType(type);
8319+
}
8320+
else return false;
83178321
}
83188322

83198323
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)