MCPcopy Create free account
hub / github.com/Singular/Singular / omPrintCurrentBackTraceMax

Function omPrintCurrentBackTraceMax

omalloc/omRet2Info.c:165–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165int 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 *

Callers 2

dReportErrorFunction · 0.85
dPolyReportErrorFunction · 0.85

Calls 2

omGetBackTraceFunction · 0.85
omPrintBackTraceFunction · 0.85

Tested by

no test coverage detected