Fix debug build after clean reset
This commit is contained in:
27
core/box/ptr_trace_box.c
Normal file
27
core/box/ptr_trace_box.c
Normal file
@ -0,0 +1,27 @@
|
||||
// ptr_trace_box.c - Stub definitions for pointer trace hooks (debug-only)
|
||||
// The debug build references these symbols via tls_sll_box.h; provide
|
||||
// lightweight no-op implementations so builds succeed without optional
|
||||
// tracing artifacts.
|
||||
|
||||
#include <stdatomic.h>
|
||||
#include <stdint.h>
|
||||
#include "../hakmem_build_flags.h"
|
||||
|
||||
#if !HAKMEM_BUILD_RELEASE
|
||||
_Atomic uint64_t g_ptr_trace_op_counter = 0;
|
||||
|
||||
void ptr_trace_record_impl(int event, void* ptr, int class_idx, uint64_t op_num,
|
||||
void* aux_ptr, uint32_t aux_u32, int aux_int,
|
||||
const char* file, int line)
|
||||
{
|
||||
(void)event;
|
||||
(void)ptr;
|
||||
(void)class_idx;
|
||||
(void)op_num;
|
||||
(void)aux_ptr;
|
||||
(void)aux_u32;
|
||||
(void)aux_int;
|
||||
(void)file;
|
||||
(void)line;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user