首页 > 其他分享 >UF_CALL

UF_CALL

时间:2023-02-18 12:00:37浏览次数:29  
标签:__ irc messg int CALL printf UF

#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);
}

标签:__,irc,messg,int,CALL,printf,UF
From: https://www.cnblogs.com/firetuo/p/17132290.html

相关文章