Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
+5 -3
View File
@@ -23,11 +23,13 @@ inline const std::string& s_cstr() {
}
#endif
inline char* str_dup(const char* a_cstr,bool a_inc = true) {
inline char* str_dup(const char* a_cstr
#ifdef TOOLS_MEM
,bool a_inc = true
#endif
) {
#ifdef TOOLS_MEM
if(a_inc) mem::increment(s_cstr().c_str());
#else
(void)a_inc;
#endif
return ::strcpy((char*)::malloc(::strlen(a_cstr)+1),a_cstr);
}