Wheefun I/O Library  0.0.5
Useful I/O Primitives.
Namespaces | Macros
wfio.h File Reference

Information about this WFIO installation. More...

Go to the source code of this file.

Namespaces

 wfio
 The root namespace for WFIO.
 

Macros

#define WFIO_VERSION_MAJOR   0
 Obtain the major version of this WFIO installation. More...
 
#define WFIO_VERSION_MINOR   0
 Obtain the minor version of this WFIO installation. More...
 
#define WFIO_VERSION_PATCH   5
 Obtain the patchlevel version of this WFIO installation. More...
 
#define WFIO_VERSION_EQ(MAJOR, MINOR)   ((WFIO_VERSION_MAJOR == MAJOR) & (WFIO_VERSION_MINOR == MINOR))
 Determine if the WFIO version is equal to MAJOR.MINOR. More...
 
#define WFIO_VERSION_EQ3(MAJOR, MINOR, PATCH)
 Determine if the WFIO version is equal to MAJOR.MINOR. More...
 
#define WFIO_VERSION_NE(MAJOR, MINOR)   ((WFIO_VERSION_MAJOR != MAJOR) | (WFIO_VERSION_MINOR != MINOR))
 Determine if the WFIO version is not equal to MAJOR.MINOR. More...
 
#define WFIO_VERSION_NE3(MAJOR, MINOR, PATCH)
 Determine if the WFIO version is not equal to MAJOR.MINOR. More...
 
#define WFIO_VERSION_AT_LEAST(MAJOR, MINOR)
 Determine if the WFIO version is at least MAJOR.MINOR. More...
 
#define WFIO_VERSION_AT_LEAST3(MAJOR, MINOR, PATCH)
 Determine if the WFIO version is at least MAJOR.MINOR.PATCH. More...
 
#define WFIO_VERSION_NO_GREATER(MAJOR, MINOR)
 Determine if the WFIO version is no greater than MAJOR.MINOR. More...
 
#define WFIO_VERSION_NO_GREATER3(MAJOR, MINOR, PATCH)
 Determine if the WFIO version is no greater than MAJOR.MINOR.PATCH. More...
 
#define WFIO_VERSION_IN_RANGE(MINMAJ, MINMIN, MAXMAJ, MAXMIN)
 Determine if the WFIO version is between MINMAJ.MINMAX and MAXMAJ.MAXMIN inclusive. More...
 
#define WFIO_VERSION_IN_RANGE3(MINMAJ, MINMIN, MINPATCH, MAXMAJ, MAXMIN, MAXPATCH)
 Determine if the WFIO version is between MINMAJ.MINMAX.MINPATCH and MAXMAJ.MAXMIN.MAXPATCH inclusive. More...
 

Detailed Description

Information about this WFIO installation.

This file contains macros that can be used to obtain information about this particular installation of WFIO. It can be used by the preprocessor to reflect on the installation so that code can be conditionally compiled against different versions. It is used as follows:

#if WFIO_VERSION_AT_LEAST(0,1)
...
#endif
Since
0.0.1

Macro Definition Documentation

◆ WFIO_VERSION_AT_LEAST

#define WFIO_VERSION_AT_LEAST (   MAJOR,
  MINOR 
)
Value:
(\
((WFIO_VERSION_MAJOR > MAJOR)) | \
((WFIO_VERSION_MAJOR == MAJOR) & (WFIO_VERSION_MINOR >= MINOR)))
#define WFIO_VERSION_MAJOR
Obtain the major version of this WFIO installation.
Definition: wfio.h:48
#define WFIO_VERSION_MINOR
Obtain the minor version of this WFIO installation.
Definition: wfio.h:55

Determine if the WFIO version is at least MAJOR.MINOR.

Parameters
MAJORthe minimum required major version.
MINORthe minimum required minimum version.
Returns
Whether or not this version is greater than or equal to the minimum supplied version.

◆ WFIO_VERSION_AT_LEAST3

#define WFIO_VERSION_AT_LEAST3 (   MAJOR,
  MINOR,
  PATCH 
)
Value:
(\
((WFIO_VERSION_MAJOR > MAJOR)) | \
((WFIO_VERSION_MAJOR == MAJOR) & (WFIO_VERSION_MINOR > MINOR)) | \
((WFIO_VERSION_MAJOR == MAJOR) & (WFIO_VERSION_MINOR == MINOR) &\
(WFIO_VERSION_PATCH >= PATCH)))
#define WFIO_VERSION_PATCH
Obtain the patchlevel version of this WFIO installation.
Definition: wfio.h:62
#define WFIO_VERSION_MAJOR
Obtain the major version of this WFIO installation.
Definition: wfio.h:48
#define WFIO_VERSION_MINOR
Obtain the minor version of this WFIO installation.
Definition: wfio.h:55

Determine if the WFIO version is at least MAJOR.MINOR.PATCH.

Parameters
MAJORthe minimum required major version.
MINORthe minimum required minor version.
PATCHthe minimum required patchlevel version.
Returns
Whether or not this version is greater than or equal to the minimum supplied version.

◆ WFIO_VERSION_EQ

#define WFIO_VERSION_EQ (   MAJOR,
  MINOR 
)    ((WFIO_VERSION_MAJOR == MAJOR) & (WFIO_VERSION_MINOR == MINOR))

Determine if the WFIO version is equal to MAJOR.MINOR.

Parameters
MAJORthe required major version.
MINORthe required minor version.
Returns
Whether or not this version is equal to the supplied version (not including the patchlevel).

◆ WFIO_VERSION_EQ3

#define WFIO_VERSION_EQ3 (   MAJOR,
  MINOR,
  PATCH 
)
Value:
((WFIO_VERSION_MAJOR == MAJOR) & (WFIO_VERSION_MINOR == MINOR) &\
(WFIO_VERSION_PATCH == PATCH))
#define WFIO_VERSION_PATCH
Obtain the patchlevel version of this WFIO installation.
Definition: wfio.h:62
#define WFIO_VERSION_MAJOR
Obtain the major version of this WFIO installation.
Definition: wfio.h:48
#define WFIO_VERSION_MINOR
Obtain the minor version of this WFIO installation.
Definition: wfio.h:55

Determine if the WFIO version is equal to MAJOR.MINOR.

Parameters
MAJORthe required major version.
MINORthe required minor version.
PATCHthe required patchlevel version.
Returns
Whether or not this version is equal to the supplied version.

◆ WFIO_VERSION_IN_RANGE

#define WFIO_VERSION_IN_RANGE (   MINMAJ,
  MINMIN,
  MAXMAJ,
  MAXMIN 
)
Value:
(\
WFIO_VERSION_AT_LEAST(MINMAJ, MINMIN) &\
WFIO_VERSION_NO_GREATER(MAXMAJ, MAXMIN))

Determine if the WFIO version is between MINMAJ.MINMAX and MAXMAJ.MAXMIN inclusive.

Parameters
MINMAJThe minimum required major version.
MINMINThe minimum required minor version.
MAXMAJThe maximum required major version.
MAXMINThe maximum required minor version.
Returns
Whether or not this version is between the two specified versions.

◆ WFIO_VERSION_IN_RANGE3

#define WFIO_VERSION_IN_RANGE3 (   MINMAJ,
  MINMIN,
  MINPATCH,
  MAXMAJ,
  MAXMIN,
  MAXPATCH 
)
Value:
(\
WFIO_VERSION_AT_LEAST3(MINMAJ, MINMIN, MINPATCH) &\
WFIO_VERSION_NO_GREATER3(MAXMAJ, MAXMIN, MAXPATH))

Determine if the WFIO version is between MINMAJ.MINMAX.MINPATCH and MAXMAJ.MAXMIN.MAXPATCH inclusive.

Parameters
MINMAJThe minimum required major version.
MINMINThe minimum required minor version.
MINPATCHThe minimum required minor version.
MAXMAJThe maximum required major version.
MAXMINThe maximum required minor version.
MAXPATCHThe maximum required patchlevel version.
Returns
Whether or not this version is between the two specified versions.

◆ WFIO_VERSION_MAJOR

#define WFIO_VERSION_MAJOR   0

Obtain the major version of this WFIO installation.

This function represents X in the version string X.Y.Z.

◆ WFIO_VERSION_MINOR

#define WFIO_VERSION_MINOR   0

Obtain the minor version of this WFIO installation.

This function represents Y in the version string X.Y.Z.

◆ WFIO_VERSION_NE

#define WFIO_VERSION_NE (   MAJOR,
  MINOR 
)    ((WFIO_VERSION_MAJOR != MAJOR) | (WFIO_VERSION_MINOR != MINOR))

Determine if the WFIO version is not equal to MAJOR.MINOR.

Parameters
MAJORthe forbidden major version.
MINORthe forbidden minor version.
Returns
Whether or not this version is not equal to the supplied version (not including the patchlevel).

◆ WFIO_VERSION_NE3

#define WFIO_VERSION_NE3 (   MAJOR,
  MINOR,
  PATCH 
)
Value:
((WFIO_VERSION_MAJOR != MAJOR) | (WFIO_VERSION_MINOR != MINOR) |\
(WFIO_VERSION_PATCH != PATCH))
#define WFIO_VERSION_PATCH
Obtain the patchlevel version of this WFIO installation.
Definition: wfio.h:62
#define WFIO_VERSION_MAJOR
Obtain the major version of this WFIO installation.
Definition: wfio.h:48
#define WFIO_VERSION_MINOR
Obtain the minor version of this WFIO installation.
Definition: wfio.h:55

Determine if the WFIO version is not equal to MAJOR.MINOR.

Parameters
MAJORthe forbidden major version.
MINORthe forbidden minor version.
PATCHthe forbidden patchlevel version.
Returns
Whether or not this version is not equal to the supplied version.

◆ WFIO_VERSION_NO_GREATER

#define WFIO_VERSION_NO_GREATER (   MAJOR,
  MINOR 
)
Value:
(\
((WFIO_VERSION_MAJOR < MAJOR)) | \
((WFIO_VERSION_MAJOR == MAJOR) & (WFIO_VERSION_MINOR <= MINOR)))
#define WFIO_VERSION_MAJOR
Obtain the major version of this WFIO installation.
Definition: wfio.h:48
#define WFIO_VERSION_MINOR
Obtain the minor version of this WFIO installation.
Definition: wfio.h:55

Determine if the WFIO version is no greater than MAJOR.MINOR.

Parameters
MAJORthe maximum required major version.
MINORthe maximum required minor version.
Returns
Whether or not this version is less than or equal to the minimum supplied version.

◆ WFIO_VERSION_NO_GREATER3

#define WFIO_VERSION_NO_GREATER3 (   MAJOR,
  MINOR,
  PATCH 
)
Value:
(\
((WFIO_VERSION_MAJOR < MAJOR)) | \
((WFIO_VERSION_MAJOR == MAJOR) & (WFIO_VERSION_MINOR < MINOR)) | \
((WFIO_VERSION_MAJOR == MAJOR) & (WFIO_VERSION_MINOR == MINOR) &\
(WFIO_VERSION_PATCH <= PATCH)))
#define WFIO_VERSION_PATCH
Obtain the patchlevel version of this WFIO installation.
Definition: wfio.h:62
#define WFIO_VERSION_MAJOR
Obtain the major version of this WFIO installation.
Definition: wfio.h:48
#define WFIO_VERSION_MINOR
Obtain the minor version of this WFIO installation.
Definition: wfio.h:55

Determine if the WFIO version is no greater than MAJOR.MINOR.PATCH.

Parameters
MAJORthe maximum required major version.
MINORthe maximum required minor version.
PATCHthe maximum required patchlevel version.
Returns
Whether or not this version is less than or equal to the minimum supplied version.

◆ WFIO_VERSION_PATCH

#define WFIO_VERSION_PATCH   5

Obtain the patchlevel version of this WFIO installation.

This function represents Z in the version string X.Y.Z.