Use forward declaration header in object.hpp

This commit is contained in:
Jeremy Rifkin 2024-10-06 16:50:39 -05:00
parent e89eb61a5f
commit a1fa0a1b81
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4
2 changed files with 3 additions and 5 deletions

View File

@ -13,6 +13,7 @@ namespace cpptrace {
struct object_frame; struct object_frame;
struct stacktrace_frame; struct stacktrace_frame;
struct safe_object_frame;
} }
#endif #endif

View File

@ -1,16 +1,13 @@
#ifndef OBJECT_HPP #ifndef OBJECT_HPP
#define OBJECT_HPP #define OBJECT_HPP
#include <cpptrace/forward.hpp>
#include <vector> #include <vector>
#include <cstdint> #include <cstdint>
namespace cpptrace { namespace cpptrace {
struct object_frame;
struct safe_object_frame;
using frame_ptr = std::uintptr_t;
namespace detail { namespace detail {
object_frame get_frame_object_info(frame_ptr address); object_frame get_frame_object_info(frame_ptr address);