35 #ifndef MOVEIT_BACKTRACE_ 36 #define MOVEIT_BACKTRACE_ 50 size_t size = backtrace(array, 500);
51 char** strings = backtrace_symbols((
void*
const*)array, size);
52 out <<
"Backtrace:" << std::endl;
53 for (
size_t i = 0; i < size; ++i)
55 out <<
" " << strings[i] << std::endl;
62 out <<
"Unable to get backtrace with the used compiler." << std::endl;
void get_backtrace(std::ostream &out)
Get the current backtrace. This may not work on all compilers.
Main namespace for MoveIt!