ITK Function Reference

(V10000.1.0.60_20160308.00)
Macros
sample_err.h File Reference
#include <pom/pom/pom_errors.h>
#include <itk/mem.h>
#include <tc/tc_startup.h>
#include <tc/emh.h>

Go to the source code of this file.

Macros

#define CALL(x)
 
#define CALLRNULL(x)
 
#define DO(x)
 

Macro Definition Documentation

#define CALL (   x)
Value:
{ \
int stat; \
char *err_string; \
if( (stat = (x)) != ITK_ok) \
{ \
EMH_ask_error_text (stat, &err_string); \
printf ("ERROR: %d ERROR MSG: %s.\n", stat, err_string); \
printf ("Function: %s FILE: %s LINE: %d\n",#x, __FILE__, __LINE__); \
MEM_free (err_string); \
return (stat); \
} \
}

Definition at line 16 of file sample_err.h.

#define CALLRNULL (   x)
Value:
{ \
int stat; \
char *err_string; \
if( (stat = (x)) != ITK_ok) \
{ \
EMH_ask_error_text (stat, &err_string); \
printf ("ERROR: %d ERROR MSG: %s.\n", stat, err_string); \
printf ("Function: %s FILE: %s LINE: %d\n",#x, __FILE__, __LINE__); \
MEM_free (err_string); \
return ((char *)NULL); \
} \
}

Definition at line 41 of file sample_err.h.

#define DO (   x)
Value:
{ \
int stat; \
char *err_string; \
if( (stat = (x)) != POM_ok) \
{ \
EMH_ask_error_text (stat, &err_string); \
printf ("ERROR: %d ERROR MSG: %s.\n", stat, err_string); \
printf ("Function: %s FILE: %s LINE: %d\n",#x, __FILE__, __LINE__); \
MEM_free (err_string); \
} \
}

Definition at line 29 of file sample_err.h.