Exodus 7.22

Macros
ex_copy.c File Reference
`#include "exodusII.h"`
`#include "exodusII_int.h"`

## Macros
#define | STRINGIFY(x) #x
#define | TOSTRING(x) STRINGIFY(x)
#define | EXCHECK(funcall)
#define | EXCHECKI(funcall)
#define | EXCHECKF(funcall)

## Macro Definition Documentation

## ◆ EXCHECK

#define EXCHECK | ( |  | funcall | ) |

Value:
if ((funcall) != NC_NOERR) { \
fprintf(stderr, "Error calling %s\n", TOSTRING(funcall)); \
EX_FUNC_LEAVE(EX_FATAL); \
}

Examples
  /test/CreateEdgeFace.c, /test/ReadEdgeFace.c, and /test/testwt-oned.c.

## ◆ EXCHECKF

#define EXCHECKF | ( |  | funcall | ) |

Value:
if ((funcall) != NC_NOERR) { \
fprintf(stderr, "Error calling %s\n", TOSTRING(funcall)); \
goto err_ret; \
}

## ◆ EXCHECKI

#define EXCHECKI | ( |  | funcall | ) |

Value:
if ((funcall) != NC_NOERR) { \
fprintf(stderr, "Error calling %s\n", TOSTRING(funcall)); \
return (EX_FATAL); \
}

## ◆ STRINGIFY

#define STRINGIFY | ( |  | x | ) | #x

## ◆ TOSTRING

#define TOSTRING | ( |  | x | ) | STRINGIFY(x)

EX_FATAL
#define EX_FATAL
Definition: exodusII.h:1699
TOSTRING
#define TOSTRING(x)
Definition: ex_copy.c:40