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

Error code value.

Description:

Function is used to set error code of the failed operation.

The error code is stored in a global variable by default. In case the operating system is used, it will be necessary to remember this value for each task individually. It can be done by setting the OS_USED for 1; the function will be automatically replaced by the equivalent function, designed to work in 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