Reverting changes in jerry_Exit and adding comment about jerry_AssertFail call.

This commit is contained in:
Ruben Ayrapetyan 2014-07-22 21:47:33 +04:00
parent 931815c915
commit 19c15b03b0

View File

@ -69,9 +69,10 @@ jerry_Exit( jerry_Status_t code) /**< status code */
case ERR_GENERAL:
__printf("ERR_GENERAL\n");
break;
default:
__printf( "Return code is zero");
}
/* The failed assertion is 'Return code is zero' */
jerry_AssertFail( "Return code is zero", __FILE__, __LINE__);
}
#endif /* !JERRY_NDEBUG */