Cut down on a debug check in release mode.

In Jewel Summoner, for example, this gets called a lot, and eats a
measurable percentage of time.
This commit is contained in:
Unknown W. Brackets 2014-03-01 15:14:17 -08:00
parent 444dd15a25
commit c7f1197ab1

View file

@ -265,8 +265,9 @@ void hleCheckCurrentCallbacks()
void hleReSchedule(const char *reason)
{
_dbg_assert_msg_(HLE, reason != 0, "hleReSchedule: Expecting a valid reason.");
_dbg_assert_msg_(HLE, reason != 0 && strlen(reason) < 256, "hleReSchedule: Not too long reason.");
#ifdef _DEBUG
_dbg_assert_msg_(HLE, reason != 0 && strlen(reason) < 256, "hleReSchedule: Invalid or too long reason.");
#endif
hleAfterSyscall |= HLE_AFTER_RESCHED;