Problem 2384

Summary: G4Version.hh change issue
Product: Geant4 Reporter: Matthias Plum <mplum>
Component: globalAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P4    
Version: 10.7   
Hardware: All   
OS: All   

Description Matthias Plum 2021-06-09 17:08:28 CEST
Dear developer,

In the recent change of the G4Version.hh the #ifndef G4VERSION_NUMBER was changed.
in 10.71 it is:
#ifndef G4VERSION_NUMBER
# define G4VERSION_NUMBER 1071
#endif


whereas it was before:
#ifndef G4VERSION_NUMBER
#define G4VERSION_NUMBER 1063
#endif

The additional space in the '# define' is causing a small cmake problem in our software and I wasn't able to fix it on our end to keep it backward compatible.

Is this change between the geant4 version really necessary? Or was it maybe introduced by accident? Thank you!
Comment 1 Gabriele Cosmo 2021-06-09 17:35:35 CEST
This was likely due to unwanted code formatting.
Will be fixed in next patch. Thanks for reporting.
Comment 2 Gabriele Cosmo 2021-06-10 11:25:28 CEST
btw, the additional space introduced should *not* invalidate the macro definition anyhow... you better fix your configuration if that creates a problem for you, as we cannot guarantee that in other places in the code formatting of macros definitions result in similar patterns!