preCICE
v3.2.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
h
i
m
n
p
r
s
t
Typedefs
b
d
e
g
l
m
p
r
s
t
u
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
i
k
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
c
d
e
i
l
m
n
o
r
s
u
v
w
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
g
i
j
m
n
o
p
r
s
t
v
Functions
a
b
c
g
m
p
r
s
t
v
Variables
Typedefs
Macros
b
d
m
n
p
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
src
utils
stacktrace.cpp
Go to the documentation of this file.
1
#include "
stacktrace.hpp
"
2
#include <boost/stacktrace.hpp>
3
#include <
exception
>
4
#include <
sstream
>
5
#include <
string
>
6
7
std::string
getStacktrace
()
8
{
9
std::ostringstream
strm;
10
try
{
11
strm << boost::stacktrace::stacktrace();
12
}
catch
(
const
std::exception
&e) {
13
strm <<
"Stacktrace failed: "
<< e.
what
();
14
}
15
return
strm.
str
();
16
}
7
std::string
getStacktrace
() {
…
}
std::ostringstream
std::string
exception
sstream
getStacktrace
std::string getStacktrace()
Returns a demangled stack backtrace of the caller function.
Definition
stacktrace.cpp:7
stacktrace.hpp
std::ostringstream::str
T str(T... args)
string
std::exception::what
T what(T... args)