DEV Community

abbazs
abbazs

Posted on

NXOPEN UFUNC UF_CALL Macro

#define UF_CALL(X) (report_error(__FILE__, __LINE__, #X, (X)))


int report_error(char *file, int line, char *call, int irc)

{

if (irc)

{

char err[133],

messg [300];

UF_get_fail_message(irc, err);

sprintf(messg, "\n%s\nerror %d at line %d in %s\n%s", err, irc, line, file, call);

LogMsg1("%s\n", messg);

}

return(irc);

}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)