MCPcopy Create free account
hub / github.com/NetHack/NetHack / btfcb_fn

Function btfcb_fn

sys/windows/windsys.c:1320–1328  ·  view source on GitHub ↗

backtrace_full_callback

Source from the content-addressed store, hash-verified

1318
1319//backtrace_full_callback
1320static int
1321btfcb_fn(void *us0, uintptr_t pc, const char *filename,
1322 int lineno, const char *fnname){
1323 struct userstate *us = us0;
1324 //XXX generate a stack frame line
1325printf("C: pc=%llx f=%s line=%d fn=%s\n",pc,filename,lineno,fnname);
1326 us->good_count++;
1327 return 0;
1328}
1329
1330//backtrace_error_callback
1331static void

Callers

nothing calls this directly

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected