inline oldAVRect StepDown(const AVRect& oldr) { oldAVRect r; if (oldr.left > ASMAXInt16 || oldr.right > ASMAXInt16 || oldr.top > ASMAXInt16 || oldr.bottom > ASMAXInt16 || oldr.left < ASMINInt16 || oldr.right < ASMINInt16 || oldr.top < ASMINInt16 || oldr.bottom < ASMINInt16) ASRaise(GenError(genErrBadParm)); r.left = (ASInt16)oldr.left; r.right = (ASInt16)oldr.right; r.top = (ASInt16)oldr.top; r.bottom = (ASInt16)oldr.bottom; return r; }
void CRParser::Expect(int n) { if (Sym == n) Get(); else GenError(n); }
inline ASInt16 StepDown(const ASInt32& x) { if (x > ASMAXInt16 || x < ASMINInt16) ASRaise(GenError(genErrBadParm)); return (ASInt16)x; }