Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
MCGIDI_version.cc File Reference
#include "MCGIDI.h"

Go to the source code of this file.

Functions

const char * MCGIDI_version (void)
 
int MCGIDI_versionMajor (void)
 
int MCGIDI_versionMinor (void)
 
int MCGIDI_versionPatchLevel (void)
 

Function Documentation

◆ MCGIDI_version()

const char * MCGIDI_version ( void )

Definition at line 13 of file MCGIDI_version.cc.

13 {
14
15 if( versionStr[0] == 0 ) snprintf( versionStr, sizeof versionStr, "MCGIDI version %d.%d.%d", MCGIDI_VERSION_MAJOR, MCGIDI_VERSION_MINOR, MCGIDI_VERSION_PATCHLEVEL );
16 return( versionStr );
17}
#define MCGIDI_VERSION_MAJOR
Definition MCGIDI.h:8
#define MCGIDI_VERSION_PATCHLEVEL
Definition MCGIDI.h:10
#define MCGIDI_VERSION_MINOR
Definition MCGIDI.h:9

◆ MCGIDI_versionMajor()

int MCGIDI_versionMajor ( void )

Definition at line 21 of file MCGIDI_version.cc.

21{ return( MCGIDI_VERSION_MAJOR ); }

◆ MCGIDI_versionMinor()

int MCGIDI_versionMinor ( void )

Definition at line 22 of file MCGIDI_version.cc.

22{ return( MCGIDI_VERSION_MINOR ); }

◆ MCGIDI_versionPatchLevel()

int MCGIDI_versionPatchLevel ( void )

Definition at line 23 of file MCGIDI_version.cc.

23{ return( MCGIDI_VERSION_PATCHLEVEL ); }