ERRTOOMANY = 65; (* too many nested traps + handlers *)
ERRNORESULT = 66; (* no RETURN from function procedure *)
ERRCARDOVFL = 67; (* CARDINAL overflow *)
+ ERRFORLOOP = 68; (* value of FOR-loop control variable changed
+ in loop
+ *)
TYPE TrapHandler = EM.TrapHandler;
{ M2_TOOMANY, "too many nested traps + handlers"},
{ M2_NORESULT, "no RETURN from procedure function"},
{ M2_UOVFL, "cardinal overflow"},
+ { M2_FORCH, "Warning: FOR-loop control variable was changed in the body"},
{ -1, 0}
};
*p = 0;
Traps_Message(q, 0, (int) (p - q), 1);
}
- exit(trapno);
+ if (trapno != M2_FORCH) exit(trapno);
+ SIG(_catch);
}