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

Last change on this file since 2628 was 2593, checked in by jderouillat, 8 months ago

Rename the MemTrack? namespace associated to CppTrace? (conflict with the --memtrack option), waiting for its full integration

  • Property svn:executable set to *
File size: 388 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 MemCppTrack
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.