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
@@ -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