stSetLastError Function
Declaration:
INLINE void stSetLastError(
  ERROR ErrorCode
);
Parameters:
ErrorCode

The error code value.

Description:

This function sets the error code for a 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, stGetLastError
SpaceShadow documentation