| 163 | } |
| 164 | |
| 165 | int omPrintCurrentBackTraceMax(FILE* fd, int max) |
| 166 | { |
| 167 | int i; |
| 168 | void* bt[OM_MAX_BACKTRACE_DEPTH]; |
| 169 | if (max > OM_MAX_BACKTRACE_DEPTH) |
| 170 | max = OM_MAX_BACKTRACE_DEPTH; |
| 171 | if (max <= 0) return 0; |
| 172 | i = omGetBackTrace(bt, 1, max); |
| 173 | return omPrintBackTrace(bt, i, fd); |
| 174 | } |
| 175 | |
| 176 | /************************************************************* |
| 177 | * |
no test coverage detected