SG_ERROR sgGetLastError()
Description:
Returns the last error code.
Arguments:
No arguments.
Returned value:
The returned errors and their codes are defined in sgErrors.h