mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-17 03:24:19 +01:00
Improved MTGS (added better suspend/resume support), and work on savestates a bit (still not working tho)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1908 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
1 parent
2046b8e7b4
commit
aaa3b773c6
31 files changed
+1109
-985
No files matched your search
@@ -53,18 +53,20 @@ wxString GetTranslation( const char* msg )
|
||||
// LogicErrors enabled as First-Chance exceptions regardless, so do it now. :)
|
||||
//
|
||||
// Returns:
|
||||
// FALSE if the assertion succeeded (condition is valid), or true if the assertion
|
||||
// TRUE if the assertion succeeded (condition is valid), or FALSE if the assertion
|
||||
// failed. The true clause is only reachable in release builds, and can be used by code
|
||||
// to provide a "stable" escape clause for unexpected behavior.
|
||||
//
|
||||
DEVASSERT_INLINE bool DevAssert( bool condition, const char* msg )
|
||||
{
|
||||
if( condition ) return false;
|
||||
if( IsDevBuild )
|
||||
throw Exception::LogicError( msg );
|
||||
if( condition ) return true;
|
||||
|
||||
wxASSERT_MSG_A( false, msg );
|
||||
return true;
|
||||
|
||||
if( IsDevBuild && !IsDebugBuild )
|
||||
throw Exception::LogicError( msg );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user