/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
//
// Exception tracer library.
-#ifndef FOLLY_EXPERIMENTAL_EXCEPTION_TRACER_EXCEPTIONTRACER_H_
-#define FOLLY_EXPERIMENTAL_EXCEPTION_TRACER_EXCEPTIONTRACER_H_
+#pragma once
#include <cstdint>
#include <iosfwd>
// The values in frames are IP (instruction pointer) addresses.
// They are only filled if the low-level exception tracer library is
// linked in or LD_PRELOADed.
- std::vector<uintptr_t> frames; // front() is top of stack
+ std::vector<uintptr_t> frames; // front() is top of stack
};
+void printExceptionInfo(
+ std::ostream& out,
+ const ExceptionInfo& info,
+ int options);
std::ostream& operator<<(std::ostream& out, const ExceptionInfo& info);
/**
*/
void installHandlers();
-} // namespace exception_tracer
-} // namespace folly
-
-#endif /* FOLLY_EXPERIMENTAL_EXCEPTION_TRACER_EXCEPTIONTRACER_H_ */
+} // namespace exception_tracer
+} // namespace folly