DEV Community

abbazs
abbazs

Posted on

3 2

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay