1 #ifndef AUDIOGRAPHER_DEBUG_UTILS_H
2 #define AUDIOGRAPHER_DEBUG_UTILS_H
4 #include "flag_field.h"
14 #include "audiographer/visibility.h"
16 namespace AudioGrapher
19 /// Utilities for debugging
20 struct LIBAUDIOGRAPHER_API DebugUtils
22 /// Returns the demangled name of the object passed as the parameter
24 static std::string demangled_name (T const & obj)
28 char * res = abi::__cxa_demangle (typeid(obj).name(), 0, 0, &status);
35 return typeid(obj).name();
38 /// Returns name of ProcessContext::Flag
39 static std::string process_context_flag_name (FlagField::Flag flag);
44 #endif // AUDIOGRAPHER_DEBUG_UTILS_H