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

Function showerror

outdated/sys/mac/macerrs.c:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41static short gTopactivity = 0;
42
43void showerror(char * errdesc, const char * errcomment)
44{
45 short itemHit;
46 Str255 paserr,
47 pascomment;
48
49 SetCursor(&qd.arrow);
50 if (errcomment == nil) errcomment = "";
51 C2P (errcomment, pascomment);
52 C2P (errdesc, paserr);
53 ParamText(paserr,pascomment,gActivities[gTopactivity],(StringPtr)"");
54 itemHit = Alert(errAlertID, (ModalFilterUPP)nil);
55}
56
57Boolean itworked(short errcode)
58/* Return TRUE if it worked, do an error message and return false if it didn't. Error

Callers 1

macerrs.cFile · 0.85

Calls 1

C2PFunction · 0.85

Tested by

no test coverage detected