File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ namespace boost { namespace stacktrace {
35
35
// / @cond
36
36
namespace detail {
37
37
38
- typedef const void * native_frame_ptr_t ; // TODO: change to `typedef void(*native_frame_ptr_t)();`
38
+ using native_frame_ptr_t = const void *;
39
39
enum helper{ max_frames_dump = 128 };
40
40
41
41
BOOST_STACKTRACE_FUNCTION std::size_t from_dump (const char * filename, native_frame_ptr_t * out_frames);
@@ -52,7 +52,7 @@ struct this_thread_frames { // struct is required to avoid warning about usage o
52
52
BOOST_NOINLINE BOOST_STACKTRACE_FUNCTION static std::size_t collect (native_frame_ptr_t * out_frames, std::size_t max_frames_count, std::size_t skip) noexcept ;
53
53
54
54
BOOST_NOINLINE static std::size_t safe_dump_to_impl (void * memory, std::size_t size, std::size_t skip) noexcept {
55
- typedef boost::stacktrace::detail::native_frame_ptr_t native_frame_ptr_t ;
55
+ using boost::stacktrace::detail::native_frame_ptr_t ;
56
56
57
57
if (size < sizeof (native_frame_ptr_t )) {
58
58
return 0 ;
@@ -66,7 +66,7 @@ struct this_thread_frames { // struct is required to avoid warning about usage o
66
66
67
67
template <class T >
68
68
BOOST_NOINLINE static std::size_t safe_dump_to_impl (T file, std::size_t skip, std::size_t max_depth) noexcept {
69
- typedef boost::stacktrace::detail::native_frame_ptr_t native_frame_ptr_t ;
69
+ using boost::stacktrace::detail::native_frame_ptr_t ;
70
70
71
71
native_frame_ptr_t buffer[boost::stacktrace::detail::max_frames_dump + 1 ];
72
72
if (max_depth > boost::stacktrace::detail::max_frames_dump) {
You can’t perform that action at this time.
0 commit comments