YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
interp_method_config_internal.h File Reference
Include dependency graph for interp_method_config_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  yac_interp_method_config_vtable
 
struct  yac_interp_method_config
 

Macros

#define CHECK_BASIC(FIELD)
 
#define CHECK_INT   CHECK_BASIC
 
#define CHECK_SIZE_T   CHECK_BASIC
 
#define CHECK_DOUBLE   CHECK_BASIC
 
#define CHECK_ENUM   CHECK_BASIC
 
#define CHECK_ANGLE(FIELD)
 
#define RETURN_ON_DIFFERENT(expr)    do { int ret; if ((ret = (expr))) return ret; } while(0)
 
#define CHECK_DOUBLE_NAN(FIELD)    RETURN_ON_DIFFERENT(memcmp(&(a->FIELD), &(b->FIELD), sizeof(a->FIELD)))
 
#define CHECK_STRUCT(PTR_FIELD, CMP_ROUTINE)    RETURN_ON_DIFFERENT(CMP_ROUTINE(a->PTR_FIELD, b->PTR_FIELD))
 
#define CHECK_NULL_POINTER(FIELD)    RETURN_ON_DIFFERENT((a->FIELD == NULL) - (b->FIELD == NULL))
 
#define CHECK_STRING(FIELD)
 
#define DEF_INTERP_METHOD_CONFIG_TYPE(TYPE)
 
#define DEF_INTERP_METHOD_CONFIG_COMPARE_TYPE(TYPE)
 

Macro Definition Documentation

◆ CHECK_ANGLE

#define CHECK_ANGLE ( FIELD)
Value:
if (fabs((a->FIELD) - (b->FIELD)) > yac_angle_tol) \
return ((a->FIELD) > (b->FIELD)) - ((a->FIELD) < (b->FIELD))
#define yac_angle_tol
Definition geometry.h:26

Definition at line 97 of file interp_method_config_internal.h.

◆ CHECK_BASIC

#define CHECK_BASIC ( FIELD)
Value:
if ((a->FIELD) != (b->FIELD)) \
return ((a->FIELD) > (b->FIELD)) - ((a->FIELD) < (b->FIELD))

Definition at line 88 of file interp_method_config_internal.h.

◆ CHECK_DOUBLE

#define CHECK_DOUBLE   CHECK_BASIC

Definition at line 94 of file interp_method_config_internal.h.

◆ CHECK_DOUBLE_NAN

#define CHECK_DOUBLE_NAN ( FIELD)     RETURN_ON_DIFFERENT(memcmp(&(a->FIELD), &(b->FIELD), sizeof(a->FIELD)))

Definition at line 105 of file interp_method_config_internal.h.

◆ CHECK_ENUM

#define CHECK_ENUM   CHECK_BASIC

Definition at line 95 of file interp_method_config_internal.h.

◆ CHECK_INT

#define CHECK_INT   CHECK_BASIC

Definition at line 92 of file interp_method_config_internal.h.

◆ CHECK_NULL_POINTER

#define CHECK_NULL_POINTER ( FIELD)     RETURN_ON_DIFFERENT((a->FIELD == NULL) - (b->FIELD == NULL))

Definition at line 111 of file interp_method_config_internal.h.

◆ CHECK_SIZE_T

#define CHECK_SIZE_T   CHECK_BASIC

Definition at line 93 of file interp_method_config_internal.h.

◆ CHECK_STRING

#define CHECK_STRING ( FIELD)
Value:
do { \
CHECK_NULL_POINTER(FIELD); \
if (a->FIELD != NULL) RETURN_ON_DIFFERENT(strcmp(a->FIELD, b->FIELD)); \
} while(0)
@ FIELD
#define RETURN_ON_DIFFERENT(expr)

Definition at line 114 of file interp_method_config_internal.h.

◆ CHECK_STRUCT

#define CHECK_STRUCT ( PTR_FIELD,
CMP_ROUTINE )    RETURN_ON_DIFFERENT(CMP_ROUTINE(a->PTR_FIELD, b->PTR_FIELD))

Definition at line 108 of file interp_method_config_internal.h.

◆ DEF_INTERP_METHOD_CONFIG_COMPARE_TYPE

#define DEF_INTERP_METHOD_CONFIG_COMPARE_TYPE ( TYPE)
Value:
const struct yac_interp_method_config_ ## TYPE *a = \
(const struct yac_interp_method_config_ ## TYPE *)a_; \
const struct yac_interp_method_config_ ## TYPE *b = \
(const struct yac_interp_method_config_ ## TYPE *)b_;

Definition at line 124 of file interp_method_config_internal.h.

◆ DEF_INTERP_METHOD_CONFIG_TYPE

#define DEF_INTERP_METHOD_CONFIG_TYPE ( TYPE)
Value:
const struct yac_interp_method_config_ ## TYPE *config_ ## TYPE = \
(const struct yac_interp_method_config_ ## TYPE *)config;
static struct yac_interp_method_config * config

Definition at line 120 of file interp_method_config_internal.h.

◆ RETURN_ON_DIFFERENT

#define RETURN_ON_DIFFERENT ( expr)     do { int ret; if ((ret = (expr))) return ret; } while(0)

Definition at line 101 of file interp_method_config_internal.h.