| 246 | } |
| 247 | |
| 248 | inline 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 | |
| 260 | inline char* b_stacktrace_to_string(b_stacktrace_handle h) { |
| 261 | const b_stacktrace_entry* entries = (b_stacktrace_entry*)h; |
nothing calls this directly
no outgoing calls
no test coverage detected