rec-cpp: verify() that we have an executer w/ shop_count

This commit is contained in:
~skmp 2015-07-28 20:15:38 +03:00 committed by Stefanos Kornilios Mitsis Poiitidis
parent ec5bb09917
commit f1a6f04dce
1 changed files with 8 additions and 9 deletions

View File

@ -1135,10 +1135,6 @@ int idxnxx = 0;
DynarecCodeEntryPtr FNS[] = { REP_8192(0, &disaptchn) };
typedef fnrv(*FNAFB)(int cycles);
FNAFB FNA[] = { REP_512(0, &fnnCtor) };
DynarecCodeEntryPtr getndpn_forreal(int n) {
if (n >= 8192)
return 0;
@ -1146,11 +1142,14 @@ DynarecCodeEntryPtr getndpn_forreal(int n) {
return FNS[n];
}
typedef fnrv(*FNAFB)(int cycles);
FNAFB FNA[] = { REP_512(1, &fnnCtor) };
FNAFB fnnCtor_forreal(size_t n) {
if (n > 512)
return 0;
else
return FNA[n];
verify(n > 0);
verify(n <= 512);
return FNA[n - 1];
}
class BlockCompiler {
@ -1541,4 +1540,4 @@ void ngen_ResetBlocks()
delete dispatchb[id].fnb;
*/
}
#endif
#endif