NAME

cgGetLastErrorString - get the current error condition

SYNOPSIS

  #include <Cg/cg.h>

  const char *cgGetLastErrorString(CGerror *error);

PARAMETERS

error

A pointer to a CGerror variable for returning the last error code.

DESCRIPTION

cgGetLastErrorString returns the current error condition and error condition string. It's similar to calling cgGetErrorString with the result of cgGetLastError. However in certain cases the error string may contain more information about the specific error that ocurred last than what cgGetErrorString would return.

RETURN VALUES

Returns the last error string. Returns NULL if there was no error.

If error is not null, it will return the last error code (the same value cgGetError would return in the location specified by error.

ERRORS

This function generates no errors.

SEE ALSO

the "cgGetError" document