上面的程序里UF_CALL()
#define UF_CALL(X)(report(__FILE__,__LINE__,#X,(X)))
static int report (char *file,int line,char *call,int irc )
{
if (irc)
{
char messg[133];
printf("%s,line %d:%s\n",file, line, call);
(UF_get_fail_message(irc,messg))?
printf(" returned a %d\n",irc):
printf(" returned error %d:%s\n",irc,messg);
}
return(irc);
} |