what does this do: #define CSVERIFY(f) ((void)(f)) ?
Posted on 2007-08-04
I am working with a 3rd party API that often uses the following #define,
#define CSVERIFY(f) ((void)(f))
An example of how they use it is:
CSVERIFY( SUCCESS == GetByName( dataStruct, FIELD_NAME, &myInt ));
In english: the dataStruct holds several name/value pairs and we are using the GetByName function to get the data associated with the field FIELD_NAME and put it in the variable myInt. We are testing the output of this function to determine if it was able to get the data correctly.
Then the mysterious CSVERIFY ?????