MCPcopy Create free account
hub / github.com/alibaba/yalantinglibs / b_stacktrace_depth

Function b_stacktrace_depth

include/ylt/util/b_stacktrace.h:248–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248inline int b_stacktrace_depth(b_stacktrace_handle h) {
249 const b_stacktrace_entry* entries = (b_stacktrace_entry*)h;
250 int i = 0;
251 while (1) {
252 const b_stacktrace_entry* cur = entries + i++;
253 if (cur->AddrReturn_Offset == 0) {
254 break;
255 }
256 }
257 return i;
258}
259
260inline char* b_stacktrace_to_string(b_stacktrace_handle h) {
261 const b_stacktrace_entry* entries = (b_stacktrace_entry*)h;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected