X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad05396006ee3655f079bd2a3c57ac0e3e7e8828..0e2ff151afc472efd2814c74add5ad4498709d33:/utils/HelpGen/src/ifcontext.cpp?ds=sidebyside diff --git a/utils/HelpGen/src/ifcontext.cpp b/utils/HelpGen/src/ifcontext.cpp index be08a59330..79f9c72a44 100644 --- a/utils/HelpGen/src/ifcontext.cpp +++ b/utils/HelpGen/src/ifcontext.cpp @@ -24,7 +24,7 @@ #include "wx/wx.h" #endif -#ifdef HAVE_MALLOC_H +#ifndef __DARWIN__ # include #endif #include @@ -35,11 +35,12 @@ 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; - wxASSERT(0); // DBG:: + wxFAIL_MSG("File not found in array in function spInterFileContext::GetFileNo()"); return 0; } @@ -119,8 +120,8 @@ void spInterFileContext::DoAppendSourceFragment( string& source, 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; } }