in C you have many datatypes… and all these datatypes have a different zero initializer… examples
int i = 0;
float f = 0.0;
const char *str = NULL;
struct myStruct *myS = NULL;
long l = 0L;
etc, I now asking for a ZERO
initializer to set everything to NULL
or 0…
. The example from above would look like…
int i = ZERO;
float f = ZERO;
const char *str = ZERO;
struct myStruct *myS = ZERO;
long l = ZERO;
this would be useful if you write a macros like…
#define highREAD(T,TT,TTT) { \
TT val = ZERO; \
MqErrorCheck(MqRead##T(mqctx,&val)); \
LngErrorCheck(PyList_Append(RET, TTT)) \
break; \
}
with a datatype as part of macro-parameter…
thanks.