va_end(args);
}
+#if ((defined(HAVE_BACKTRACE) || defined(HAVE_LIBUNWIND_H)) && \
+ defined(HAVE_DLADDR)) || defined(WIN32)
+
/**
* Same as tty_escape_get(), but for a potentially NULL FILE*
*/
return "";
}
+#endif /* HAVE_BACKTRACE/HAVE_LIBUNWIND_H/WIN32 */
+
#ifdef HAVE_DBGHELP
#include <dbghelp.h>
void backtrace_init() {}
void backtrace_deinit() {}
+#if defined(HAVE_BACKTRACE) || defined(HAVE_LIBUNWIND_H) || defined(WIN32)
+
/**
* Print the source file with line number to file, slow addr2line variant
*/
}
}
+#endif /* HAVE_BACKTRACE/HAVE_LIBUNWIND_H/WIN32 */
+
#endif /* HAVE_BFD_H */
#else /* !HAVE_DLADDR && !HAVE_DBGHELP */
#endif /* HAVE_BFD_H */
}
else
-#endif /* HAVE_DLADDR/HAVE_DBGHELP */
+#endif /* HAVE_DLADDR/HAVE_DBGHELP/WIN32 */
{
#ifdef HAVE_BACKTRACE
if (!strings)