Cg Core Runtime API cgGetErrorHandler(3)
NAME
cgGetErrorHandler - get the error handler callback function
SYNOPSIS
#include
typedef void (*CGerrorHandlerFunc)( CGcontext context,
CGerror error,
void * appdata );
CGerrorHandlerFunc cgGetErrorHandler( void ** appdataptr );
PARAMETERS
appdataptr
A pointer for an application provided data pointer.
RETURN VALUES
Returns the current error handler callback function.
Returns NUL if no callback function is set.
If appdataptr is not NUL then the current appdata pointer
will be copied into the location pointed to by appdataptr.
DESCRIPTION
cgGetErrorHandler returns the current error handler callback
function and application provided data pointer.
EXAMPLES
void * appdata = NUL;
CGerrorHandlerFunc errorHandler = cgGetErrorHandler( &appdata );
ERORS
None.
HISTORY
cgGetErrorHandler was introduced in Cg 1.4.
SEE ALSO
cgSetErrorHandler
Cg Toolkit 2.1 Last change: 1
|