12 #ifndef __MLPACK_CORE_UTIL_BACKTRACE_HPP 13 #define __MLPACK_CORE_UTIL_BACKTRACE_HPP 91 static std::vector<Frames>
stack;
struct mlpack::Backtrace::Frames frame
Linear algebra utility functions, generally performed on matrices or vectors.
Backtrace()
Constructor initialize fields and call GetAddress to retrieve addresses for each frame of backtrace...
static std::vector< Frames > stack
A vector for all the backtrace information.
static void DecodeAddress(long address)
Decodes file name, function & line number.
static void DemangleFunction()
Demangles function name.
static void GetAddress(int maxDepth)
Gets addresses of each called function from the stack.
std::string ToString()
Returns string of backtrace.
test cpp RESULT_VARIABLE MEX_RESULT_TRASH OUTPUT_VARIABLE MEX_OUTPUT ERROR_VARIABLE MEX_ERROR_TRASH string(REGEX MATCH"Warning: You are using"MEX_WARNING"${MEX_OUTPUT}") if(MEX_WARNING) string(REGEX REPLACE".*using [a-zA-Z]* version \"([0-9.]*)[^\"]*\".*""\\1"OTHER_COMPILER_VERSION"$