Skip to content
Snippets Groups Projects
Commit c6572e71 authored by Paul Russo's avatar Paul Russo
Browse files

Fix G__is_cppmacro, it just did not work, it was

checking for a typename of $MACRO$ instead of
macroInt$ or macroDouble$.

This change comes from Philippe Canal.

-- Paul Russo


git-svn-id: http://root.cern.ch/svn/root/trunk@24276 27541ba8-7e3a-0410-8455-c3a389f83636
parent 749a16fd
No related branches found
No related tags found
No related merge requests found
......@@ -1200,7 +1200,8 @@ bool Cint::Internal::G__test_access(const ::Reflex::Member var, int access)
//______________________________________________________________________________
bool Cint::Internal::G__is_cppmacro(const ::Reflex::Member var)
{
return (var.TypeOf().RawType().Name() == "$MACRO$");
const Reflex::Type type = var.TypeOf();
return (type.Name() == "macroInt$") || (type.Name() == "macroDouble$");
}
//______________________________________________________________________________
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment