#include "ngcore.hpp" #ifndef WIN #include #endif namespace ngcore { std::map& GetLibraryVersions() { static std::map library_versions; return library_versions; } #ifdef WIN // windows does demangling in typeid(T).name() std::string demangle(const char* typeinfo) { return typeinfo; } #else std::string demangle(const char* typeinfo) { int status; return abi::__cxa_demangle(typeinfo, 0, 0, &status); } #endif std::map& GetArchiveRegister() { static std::map type_register; return type_register; } }