source: XIOS3/trunk/src/backtrace.hpp @ 2587

Last change on this file since 2587 was 2575, checked in by ymipsl, 10 months ago

New stack trace back-end end using cpptrace.
YM

  • Property svn:executable set to *
File size: 385 bytes
Line 
1#ifndef __XIOS_BACKTRACE_HPP__
2#define __XIOS_BACKTRACE_HPP__
3
4#include <sstream>
5#include <string>
6
7namespace xios
8{
9  namespace MemTrack
10  {
11    void backTrace(std::ostringstream& stack, int n=0) ;
12
13    inline const std::string backTrace(int n=0)
14    {
15      std::ostringstream stack ;
16      backTrace(stack,n) ;
17      return stack.str() ;
18    }
19  } 
20}
21
22#endif
Note: See TracBrowser for help on using the repository browser.