Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
+25
View File
@@ -0,0 +1,25 @@
// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_serrno
#define tools_serrno
#include <cerrno>
#include <cstring>
#include <sstream>
namespace tools {
inline void serrno(std::string& a_s) {
std::ostringstream strm;
strm << (int)errno;
a_s = " error : ";
a_s += strm.str();
a_s += " : ";
a_s += strerror(errno);
a_s += ".";
}
}
#endif