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

Function btecb_fn

sys/windows/windsys.c:1331–1343  ·  view source on GitHub ↗

backtrace_error_callback

Source from the content-addressed store, hash-verified

1329
1330//backtrace_error_callback
1331static void
1332btecb_fn(void *us0, const char *msg, int errnum){
1333 struct userstate *us = us0;
1334 us->error_count++;
1335 if(errnum < 0){
1336printf("E1: M=%s e=%d\n",msg,errnum);
1337 // XXX save error message
1338 } else {
1339printf("E2: M=%s e=%d\n",msg,errnum);
1340 // errnum is an errno
1341 //XXX save error message with strerror
1342 }
1343}
1344#endif
1345
1346#ifdef USE_BACKTRACE

Callers

nothing calls this directly

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected