ee: add a comment on setjmp/longjmp behavior

This commit is contained in:
Gregory Hainaut 2015-12-01 18:48:45 +01:00
parent 5761eba529
commit 1f374e4b92
1 changed files with 3 additions and 0 deletions

View File

@ -810,6 +810,9 @@ static void recExecute()
m_cpuException = NULL;
m_Exception = NULL;
// setjmp will save the register context and will return 0
// A call to longjmp will restore the context (included the eip/rip)
// but will return the longjmp 2nd parameter (here 1)
if( !setjmp( m_SetJmp_StateCheck ) )
{
eeRecIsReset = false;