コード例 #1
0
ファイル: AVCompat.cpp プロジェクト: happyg1t/Adobe-plugins
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;
}
コード例 #2
0
ファイル: CR_PARSE.cpp プロジェクト: jackieju/cs
void CRParser::Expect(int n)
{
  if (Sym == n) Get(); else GenError(n);
}
コード例 #3
0
ファイル: AVCompat.cpp プロジェクト: happyg1t/Adobe-plugins
inline ASInt16 StepDown(const ASInt32& x)
{
	if (x > ASMAXInt16 || x < ASMINInt16)
		ASRaise(GenError(genErrBadParm));
	return (ASInt16)x;
}