Fix python binding consistency with wrong naming scheme

This commit is contained in:
baldurk
2020-02-06 19:10:43 +00:00
parent 40f4879496
commit fe30fa91fb
2 changed files with 8 additions and 4 deletions
+3 -3
View File
@@ -1346,7 +1346,7 @@ bool ShaderViewer::stepBack()
if(IsFirstState())
break;
if(m_Trace->lineInfo[GetCurrentState().nextInstruction].sourceEqual(oldLine))
if(m_Trace->lineInfo[GetCurrentState().nextInstruction].SourceEqual(oldLine))
continue;
break;
@@ -1357,7 +1357,7 @@ bool ShaderViewer::stepBack()
// now since a line can have multiple instructions, keep stepping (looking forward) until we
// reach the first instruction with an identical line info
while(!IsFirstState() &&
m_Trace->lineInfo[GetPreviousState().nextInstruction].sourceEqual(oldLine))
m_Trace->lineInfo[GetPreviousState().nextInstruction].SourceEqual(oldLine))
{
applyBackwardsChange();
@@ -1398,7 +1398,7 @@ bool ShaderViewer::stepNext()
if(IsLastState())
break;
if(m_Trace->lineInfo[GetCurrentState().nextInstruction].sourceEqual(oldLine))
if(m_Trace->lineInfo[GetCurrentState().nextInstruction].SourceEqual(oldLine))
continue;
break;
+5 -1
View File
@@ -468,7 +468,11 @@ struct LineColumnInfo
return false;
}
bool sourceEqual(const LineColumnInfo &o) const
DOCUMENT(R"(:return: ``True`` if this object is equal to the parameter, disregarding
:data:`disassemblyLine`.
:rtype: ``bool``
)");
bool SourceEqual(const LineColumnInfo &o) const
{
// comparison without considering the disassembly line
return fileIndex == o.fileIndex && lineStart == o.lineStart && lineEnd == o.lineEnd &&