The callback goes first.

git-svn-id: http://root.cern.ch/svn/root/trunk@46342 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
Vassil Vassilev 2012-10-05 13:19:18 +00:00
parent 0a9ed8027c
commit 2fbeb6ecd4

View File

@ -31,14 +31,14 @@ namespace cling {
bool DynamicIDHandler::LookupUnqualified(LookupResult& R, Scope* S) {
if (!IsDynamicLookup(R, S))
return false;
InterpreterCallbacks* callbacks = m_Interpreter->getCallbacks();
if (callbacks && callbacks->isEnabled()) {
return callbacks->LookupObject(R, S);
}
if (!IsDynamicLookup(R, S))
return false;
DeclarationName Name = R.getLookupName();
IdentifierInfo* II = Name.getAsIdentifierInfo();
SourceLocation Loc = R.getNameLoc();