git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12837
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
size_t spInterFileContext::GetFileNo( const string& fname )
{
size_t spInterFileContext::GetFileNo( const string& fname )
{
- for( size_t i = 0; i != mFiles.size(); ++i )
-
- if ( fname == mFiles[i] ) return i;
+ size_t i;
+ for ( i = 0; i != mFiles.size(); ++i )
+ if ( fname == mFiles[i] )
+ return i;
+ wxFAIL_MSG("File not found in array in function spInterFileContext::GetFileNo()");
if ( cur >= pos + len ) // check if we've overstepped the current source-fragment
{
if ( cur >= pos + len ) // check if we've overstepped the current source-fragment
{
- wxASSERT(0); // DBG:: with current imp. this should not happen
-
+// wxASSERT(0); // DBG:: with current imp. this should not happen
+ wxFAIL_MSG("Overstepped the current source fragment in function\nspInterFileContext::DoAppendSourceFragment()");
cur = pos + len; break;
}
}
cur = pos + len; break;
}
}
mpParent->RemoveChild( this );
else
// context should have a parent
mpParent->RemoveChild( this );
else
// context should have a parent
+ wxFAIL_MSG("Context should have a parent");
}
spContext* spContext::GetOutterContext()
}
spContext* spContext::GetOutterContext()