Cyclone Scheme  0.28.0

◆ Cyc_st_add

#define Cyc_st_add (   data,
  frame 
)
Value:
{ \
gc_thread_data *thd = (gc_thread_data *) data; \
/* Do not allow recursion to remove older frames */ \
if ((char *)frame != thd->stack_prev_frame) { \
thd->stack_prev_frame = frame; \
thd->stack_traces[thd->stack_trace_idx] = frame; \
thd->stack_trace_idx = (thd->stack_trace_idx + 1) % MAX_STACK_TRACES; \
} \
}

Register a frame in the stack trace circular buffer.

Parameters
dataThread data object
frameName of the frame
gc_thread_data_t
Definition: types.h:322
MAX_STACK_TRACES
#define MAX_STACK_TRACES
Definition: types.h:142