MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Com_ErrorString

Function Com_ErrorString

code/qcommon/common.cpp:1003–1016  ·  view source on GitHub ↗

================= Com_ErrorString Error string for the given error code (from Com_Error). ================= */

Source from the content-addressed store, hash-verified

1001=================
1002*/
1003static const char *Com_ErrorString ( int code )
1004{
1005 switch ( code )
1006 {
1007 case ERR_DISCONNECT:
1008 return "DISCONNECTED";
1009
1010 case ERR_DROP:
1011 return "DROPPED";
1012
1013 default:
1014 return "UNKNOWN";
1015 }
1016}
1017
1018/*
1019=================

Callers 2

Com_InitFunction · 0.70
Com_FrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected