sitelogo
エラーチェックのための関数
MINERVA superseeded IF/Prolog. Please see http://www.ifcomputer.co.jp/MINERVA for details.

We discontinued to sell IF/Prolog Dec 31. 2003. For current customers, we continue to provide professional support for IF/Prolog until Dec 31, 2008.

関数名 XChk 概要 #include "cpred.h"

int XChk(TEST,EXCEPTION_MESSAGE) int TEST; char *EXCEPTION_MESSAGE;

XChkは、TESTを評価し、結果を検討します。もし、TESTの結果が真(=1)であれば、XChkによって1が返されます。そうでなければ0が返され、EXCEPTION_MESSAGEで与えられた例外メッセージがIF/Prologの例外処理ハンドラに渡されます。

たとえば XChk( IsAt( StringTerm ),"atom_expected" );


Darueber read on...
scroll to top managed with ubiCMS