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

Use Playwright to test. Use Playwright to monitor.

Join Vercel, CrowdStrike, and thousands of other teams that run end-to-end monitors on Checkly's programmable monitoring platform.

Get started now!

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay