CoreNEURON
version_macros.hpp File Reference
#include "coreneuron/config/neuron_version.hpp"

Go to the source code of this file.

Macros

#define NRN_VERSION_INT(maj, min, pat)   (10000 * maj + 100 * min + pat)
 
#define NRN_VERSION   NRN_VERSION_INT(NRN_VERSION_MAJOR, NRN_VERSION_MINOR, NRN_VERSION_PATCH)
 
#define NRN_VERSION_EQ(maj, min, pat)   (NRN_VERSION == NRN_VERSION_INT(maj, min, pat))
 
#define NRN_VERSION_NE(maj, min, pat)   (NRN_VERSION != NRN_VERSION_INT(maj, min, pat))
 
#define NRN_VERSION_GT(maj, min, pat)   (NRN_VERSION > NRN_VERSION_INT(maj, min, pat))
 
#define NRN_VERSION_LT(maj, min, pat)   (NRN_VERSION < NRN_VERSION_INT(maj, min, pat))
 
#define NRN_VERSION_GTEQ(maj, min, pat)   (NRN_VERSION >= NRN_VERSION_INT(maj, min, pat))
 
#define NRN_VERSION_LTEQ(maj, min, pat)   (NRN_VERSION <= NRN_VERSION_INT(maj, min, pat))
 

Macro Definition Documentation

◆ NRN_VERSION

#define NRN_VERSION   NRN_VERSION_INT(NRN_VERSION_MAJOR, NRN_VERSION_MINOR, NRN_VERSION_PATCH)

Definition at line 14 of file version_macros.hpp.

◆ NRN_VERSION_EQ

#define NRN_VERSION_EQ (   maj,
  min,
  pat 
)    (NRN_VERSION == NRN_VERSION_INT(maj, min, pat))

Definition at line 15 of file version_macros.hpp.

◆ NRN_VERSION_GT

#define NRN_VERSION_GT (   maj,
  min,
  pat 
)    (NRN_VERSION > NRN_VERSION_INT(maj, min, pat))

Definition at line 17 of file version_macros.hpp.

◆ NRN_VERSION_GTEQ

#define NRN_VERSION_GTEQ (   maj,
  min,
  pat 
)    (NRN_VERSION >= NRN_VERSION_INT(maj, min, pat))

Definition at line 19 of file version_macros.hpp.

◆ NRN_VERSION_INT

#define NRN_VERSION_INT (   maj,
  min,
  pat 
)    (10000 * maj + 100 * min + pat)

Definition at line 13 of file version_macros.hpp.

◆ NRN_VERSION_LT

#define NRN_VERSION_LT (   maj,
  min,
  pat 
)    (NRN_VERSION < NRN_VERSION_INT(maj, min, pat))

Definition at line 18 of file version_macros.hpp.

◆ NRN_VERSION_LTEQ

#define NRN_VERSION_LTEQ (   maj,
  min,
  pat 
)    (NRN_VERSION <= NRN_VERSION_INT(maj, min, pat))

Definition at line 20 of file version_macros.hpp.

◆ NRN_VERSION_NE

#define NRN_VERSION_NE (   maj,
  min,
  pat 
)    (NRN_VERSION != NRN_VERSION_INT(maj, min, pat))

Definition at line 16 of file version_macros.hpp.