ITK Function Reference

(V10000.1.0.60_20160308.00)
Macros
Teamcenter Macros

Macros

#define DATE_IS_NULL(d1)
 
#define ITKCALL(argument)
 
#define STRCPY(a, b)   tc_strcpy(a, b)
 
#define STRLEN(a)   tc_strlen(a)
 
#define STRNCPY(a, b, s)   tc_strncpy(a, b, s)
 

Detailed Description

Macro Definition Documentation

#define DATE_IS_NULL (   d1)
Value:
((d1.year == NULLDATE.year ) ? \
((d1.month == NULLDATE.month) ? \
((d1.day == NULLDATE.day ) ? \
((d1.hour == NULLDATE.hour) ? \
((d1.minute == NULLDATE.minute) ? \
((d1.second == NULLDATE.second) ? 1 \
: 0) \
: 0) \
: 0) \
: 0) \
: 0) \
: 0)

This macro will return 1 if the given date is equal to NULLDATE. pom.inc must be included before this macro can be properly expanded.

Definition at line 33 of file tc_macros.h.

#define ITKCALL (   argument)
Value:
{ \
int retcode = argument; \
if ( retcode != ITK_ok ) { \
char* s; \
printf( " "#argument "\n" ); \
printf( " returns [%d]\n", retcode ); \
EMH_ask_error_text (retcode, &s); \
printf( " Teamcenter ERROR: [%s]\n", s); \
printf( " in file ["__FILE__"], line [%d]\n\n", __LINE__ ); \
if (s != 0) MEM_free (s); \
} \
}

Definition at line 53 of file tc_macros.h.

#define STRCPY (   a,
 
)    tc_strcpy(a, b)

Definition at line 49 of file tc_macros.h.

#define STRLEN (   a)    tc_strlen(a)

Definition at line 47 of file tc_macros.h.

#define STRNCPY (   a,
  b,
 
)    tc_strncpy(a, b, s)

Definition at line 51 of file tc_macros.h.