stGetLastError Function
Declaration:
INLINE ERROR stGetLastError(void);
Return value:

Returns the error code corresponding to the last failed operation.

Description:

This function retrieves the error code of the last failed operation.

By default, the error code is stored in a global variable. When an operating system is utilized, this value must be maintained separately for each task. This behavior is enabled by setting OS_USED to 1; the function will then be automatically replaced by an equivalent implementation designed for a multitasking environment.

Version:1.0
Header file:ST_Errors.h (include ST_API.h)
See also: ERROR, error codes management, INLINE, operating system, OS_USED, stSetLastError
SpaceShadow documentation