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

Function ILAPIENTRY ilGetError

DevIL/src-IL/src/il_error.cpp:44–56  ·  view source on GitHub ↗

Gets the last error on the error stack

Source from the content-addressed store, hash-verified

42
43//! Gets the last error on the error stack
44ILenum ILAPIENTRY ilGetError(void)
45{
46 ILenum ilReturn;
47
48 if (ilErrorPlace >= 0) {
49 ilReturn = ilErrorNum[ilErrorPlace];
50 ilErrorPlace--;
51 }
52 else
53 ilReturn = IL_NO_ERROR;
54
55 return ilReturn;
56}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected