#if PRVMTRACE
PRVM_PrintStatement(st);
#endif
+#if PRVMSTATEMENTPROFILING
+ prog->statement_profile[st - prog->statements]++;
+#endif
switch (st->op)
{
prog->xfunction->profile += (st - startst);
st += st->b - 1; // offset the s++
startst = st;
- if (++jumpcount> 1000000)
+ if (++jumpcount == 1000000000)
{
prog->xstatement = st - prog->statements;
PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME);
prog->xfunction->profile += (st - startst);
st += st->b - 1; // offset the s++
startst = st;
- if (++jumpcount> 1000000)
+ if (++jumpcount == 1000000000)
{
prog->xstatement = st - prog->statements;
PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME);
prog->xfunction->profile += (st - startst);
st += st->a - 1; // offset the s++
startst = st;
- if (++jumpcount> 1000000)
+ if (++jumpcount == 1000000000)
{
prog->xstatement = st - prog->statements;
PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME);