Export GetStackTrace

Necessary when building with BUILD_SHARED_LIBS=1.
This commit is contained in:
Andrew Schwartzmeyer 2017-05-25 13:43:39 -07:00
parent f1d64f7deb
commit e2caf9876e

View File

@ -31,13 +31,14 @@
//
// Windows implementation - just use CaptureStackBackTrace
#include "config.h"
#include "port.h"
#include "stacktrace.h"
#include <DbgHelp.h>
_START_GOOGLE_NAMESPACE_
// If you change this function, also change GetStackFrames below.
GOOGLE_GLOG_DLL_DECL
int GetStackTrace(void** result, int max_depth, int skip_count) {
if (max_depth > 64) {
max_depth = 64;