summaryrefslogtreecommitdiff
path: root/src/catch.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-08 23:00:29 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-08 23:03:29 +0300
commit0b26c83fd6c485b6686244a41647324fcf1a1843 (patch)
treed8fe2e447d46287cc0d9e71cc96d5c677ae1eddb /src/catch.hpp
parent308ce845d53c6544f9577982eef26cd252ec2f79 (diff)
downloadplus-0b26c83fd6c485b6686244a41647324fcf1a1843.tar.gz
plus-0b26c83fd6c485b6686244a41647324fcf1a1843.tar.bz2
plus-0b26c83fd6c485b6686244a41647324fcf1a1843.tar.xz
plus-0b26c83fd6c485b6686244a41647324fcf1a1843.zip
Enable stack generation if target platform support this.
Diffstat (limited to 'src/catch.hpp')
-rw-r--r--src/catch.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/catch.hpp b/src/catch.hpp
index a5563d7a7..07ffcc7b1 100644
--- a/src/catch.hpp
+++ b/src/catch.hpp
@@ -6073,8 +6073,7 @@ namespace Catch {
resultBuilder.setResultType( ResultWas::FatalErrorCondition );
resultBuilder << message;
// stack
-#ifndef ANDROID
-#if defined __linux__ || defined __linux
+#ifdef HAVE_EXECINFO
{
void *array[15];
const int size = static_cast<int>(backtrace(array, 15));
@@ -6083,8 +6082,7 @@ namespace Catch {
resultBuilder << strings[i];
free(strings);
}
-#endif // defined __linux__ || defined __linux
-#endif // ANDROID
+#endif // HAVE_EXECINFO
// stack
resultBuilder.captureExpression();