mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-13 01:05:36 +00:00
Emacs format
This commit is contained in:
parent
81cc28f6ca
commit
18daf85069
@ -28,27 +28,27 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
See the full license in the file "LICENSE" in the top level distribution
|
See the full license in the file "LICENSE" in the top level distribution
|
||||||
directory
|
directory
|
||||||
*************************************************************************************/
|
*************************************************************************************/
|
||||||
/* END LEGAL */
|
/* END LEGAL */
|
||||||
#include <Grid/GridCore.h>
|
#include <Grid/GridCore.h>
|
||||||
#include <Grid/util/CompilerCompatible.h>
|
#include <Grid/util/CompilerCompatible.h>
|
||||||
|
|
||||||
#include <cxxabi.h>
|
#include <cxxabi.h>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
|
|
||||||
std::string demangle(const char* name) {
|
std::string demangle(const char* name) {
|
||||||
|
|
||||||
int status = -4; // some arbitrary value to eliminate the compiler warning
|
int status = -4; // some arbitrary value to eliminate the compiler warning
|
||||||
|
|
||||||
// enable c++11 by passing the flag -std=c++11 to g++
|
// enable c++11 by passing the flag -std=c++11 to g++
|
||||||
std::unique_ptr<char, void(*)(void*)> res {
|
std::unique_ptr<char, void(*)(void*)> res {
|
||||||
abi::__cxa_demangle(name, NULL, NULL, &status),
|
abi::__cxa_demangle(name, NULL, NULL, &status),
|
||||||
std::free
|
std::free
|
||||||
};
|
};
|
||||||
|
|
||||||
return (status==0) ? res.get() : name ;
|
return (status==0) ? res.get() : name ;
|
||||||
}
|
}
|
||||||
|
|
||||||
GridStopWatch Logger::GlobalStopWatch;
|
GridStopWatch Logger::GlobalStopWatch;
|
||||||
int Logger::timestamp;
|
int Logger::timestamp;
|
||||||
@ -113,4 +113,5 @@ void Grid_unquiesce_nodes(void) {
|
|||||||
std::cout.clear();
|
std::cout.clear();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
NAMESPACE_END(Grid);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user