Skip to content
Snippets Groups Projects
Commit 83169494 authored by Vassil Vassilev's avatar Vassil Vassilev
Browse files

Break only if the condition is held.

parent 2788aa16
No related branches found
No related tags found
No related merge requests found
......@@ -32,12 +32,13 @@ namespace cling {
if (Tok.getIdent().startswith("if")) {
Res = kIncomplete;
m_ParenStack.push(kind);
break;
}
else if (Tok.getIdent().startswith("end")) {
assert(m_ParenStack.top() == kind && "No coresponding # to pop?");
m_ParenStack.pop();
break;
}
break;
}
}
......
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