Skip to content

Commit 29432f9

Browse files
committed
FOrmatting
1 parent 340fe0e commit 29432f9

File tree

6 files changed

+243
-128
lines changed

6 files changed

+243
-128
lines changed

src/memray/_memray/ghost_stack/include/ghost_stack.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ typedef size_t (*ghost_stack_unwinder_t)(void** buffer, size_t size);
5353
* Will be called automatically on first ghost_stack_backtrace() if not
5454
* explicitly initialized.
5555
*/
56-
void ghost_stack_init(ghost_stack_unwinder_t unwinder);
56+
void
57+
ghost_stack_init(ghost_stack_unwinder_t unwinder);
5758

5859
/**
5960
* Capture stack trace - drop-in replacement for unw_backtrace().
@@ -65,7 +66,8 @@ void ghost_stack_init(ghost_stack_unwinder_t unwinder);
6566
* @param size Maximum number of frames to capture
6667
* @return Number of frames captured (0 on error)
6768
*/
68-
size_t ghost_stack_backtrace(void** buffer, size_t size);
69+
size_t
70+
ghost_stack_backtrace(void** buffer, size_t size);
6971

7072
/**
7173
* Reset the shadow stack, restoring all original return addresses.
@@ -77,15 +79,17 @@ size_t ghost_stack_backtrace(void** buffer, size_t size);
7779
*
7880
* Safe to call even if no capture has occurred.
7981
*/
80-
void ghost_stack_reset(void);
82+
void
83+
ghost_stack_reset(void);
8184

8285
/**
8386
* Clean up thread-local resources.
8487
*
8588
* Optional - resources are cleaned up automatically on thread exit.
8689
* Call explicitly if you want immediate cleanup.
8790
*/
88-
void ghost_stack_thread_cleanup(void);
91+
void
92+
ghost_stack_thread_cleanup(void);
8993

9094
#ifdef __cplusplus
9195
}

0 commit comments

Comments
 (0)