MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY iluErrorString

Function ILAPIENTRY iluErrorString

DevIL/src-ILU/src/ilu_error.cpp:64–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63
64ILconst_string ILAPIENTRY iluErrorString(ILenum Error)
65{
66 // Now we are dealing with Unicode strings.
67 if (Error == IL_NO_ERROR) {
68 return iluMiscErrors[0];
69 }
70 if (Error == IL_UNKNOWN_ERROR) {
71 return iluMiscErrors[1];
72 }
73 if (Error >= IL_INVALID_ENUM && Error <= IL_FILE_READ_ERROR) {
74 return (ILstring)iluErrors[Error - IL_INVALID_ENUM];
75 }
76 if (Error >= IL_LIB_GIF_ERROR && Error <= IL_LIB_EXR_ERROR) {
77 return (ILstring)iluLibErrors[Error - IL_LIB_GIF_ERROR];
78 }
79
80 return iluMiscErrors[0];
81}
82
83
84ILboolean ILAPIENTRY iluSetLanguage(ILenum Language)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected