Go to the documentation of this file.
16 #ifndef _CNRP_MACROS_H
17 #define _CNRP_MACROS_H
22 #define CHECK_DEBUG_PAR(x, y) \
23 if (x != 0 && x != 4) { \
24 (void) fprintf(stderr, "\nio: illegal debug parameter %s\n\n", y); \
28 #define READ_FLOAT_PAR(par) \
29 if (sscanf(value, "%f", &(par)) != 1){ \
30 (void) fprintf(stderr, "\nio: error reading parameter %s\n\n", key); \
34 void BOTH_ENDS
PROTO((
int index,
int *vh,
int *vl));
35 int NEAREST_INT
PROTO((
double num));
36 int INDEX
PROTO((
int v0,
int v1));
37 int BINS
PROTO((
double weight,
double capacity));
38 int RHS
PROTO((
int cust_num,
double weight,
double capacity));