INLINE ERROR stGetLastError(void);
Returns the error code corresponding to the last failed operation.
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 |