MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / x11error

Function x11error

include/x11err.h:18–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#define CASE(m) case m: return #m;
17
18static const char *x11error(int code)
19{
20 if(code >= FirstExtensionError && code <= LastExtensionError)
21 return "Extension error";
22 switch(code)
23 {
24 CASE(BadRequest)
25 CASE(BadValue)
26 CASE(BadWindow)
27 CASE(BadPixmap)
28 CASE(BadAtom)
29 CASE(BadCursor)
30 CASE(BadFont)
31 CASE(BadMatch)
32 CASE(BadDrawable)
33 CASE(BadAccess)
34 CASE(BadAlloc)
35 CASE(BadColor)
36 CASE(BadGC)
37 CASE(BadIDChoice)
38 CASE(BadName)
39 CASE(BadLength)
40 CASE(BadImplementation)
41 default: return "Unknown error code";
42 }
43}

Callers 3

xhandlerFunction · 0.85
xhandlerFunction · 0.85
xhandlerFunction · 0.85

Calls

no outgoing calls

Tested by 2

xhandlerFunction · 0.68
xhandlerFunction · 0.68