We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a835fe commit 71b6e8eCopy full SHA for 71b6e8e
wpiutil/src/main/native/unix/StackTrace.cpp
@@ -4,7 +4,9 @@
4
5
#include "wpi/StackTrace.h"
6
7
+#ifndef __EMSCRIPTEN__
8
#include <execinfo.h>
9
+#endif
10
11
#include <string>
12
@@ -16,7 +18,7 @@
16
18
namespace wpi {
17
19
20
std::string GetStackTraceDefault(int offset) {
-#ifndef __ANDROID__
21
+#if !defined(__ANDROID__) && !defined(__EMSCRIPTEN__)
22
void* stackTrace[128];
23
int stackSize = backtrace(stackTrace, 128);
24
char** mangledSymbols = backtrace_symbols(stackTrace, stackSize);
@@ -40,7 +42,7 @@ std::string GetStackTraceDefault(int offset) {
40
42
41
43
return std::string{trace.str()};
44
#else
- // backtrace_symbols not supported on android
45
+ // backtrace_symbols not supported
46
return "";
47
#endif
48
}
0 commit comments