Added TODO

This commit is contained in:
Justin Ethier 2015-07-10 23:27:58 -04:00
parent 384a5ce0fe
commit 93be85a1ee

View file

@ -80,7 +80,7 @@ void Cyc_st_init() {
} }
void Cyc_st_add(char *frame) { void Cyc_st_add(char *frame) {
/* add to circ buf */ // TODO: do not add if (idx - 1) == frame, since that causes recursion to remove older frames
Cyc_Stack_Traces[Cyc_Stack_Trace_Idx] = frame; Cyc_Stack_Traces[Cyc_Stack_Trace_Idx] = frame;
Cyc_Stack_Trace_Idx = (Cyc_Stack_Trace_Idx + 1) % MAX_STACK_TRACES; Cyc_Stack_Trace_Idx = (Cyc_Stack_Trace_Idx + 1) % MAX_STACK_TRACES;
} }