KRASCHE
&
BYRNE
         ELZED  HOME       NEWS       DOCS       DOWNLOADS       LICENSING       SUPPORT       FAQ       ABOUT  US

What's An Elzed?
Features
Licensing
Downloads
Documentation
Elzed News
    ELZED 
 Documentation 
 The Details 
 API 

lzSetErrorCallback

The lzSetErrorCallback function identifies the host function to be called in the event of an error in the current context.

bool lzSetErrorCallback(
   ErrorFunction pErrorFunction   // pointer to the host error function
);

Parameters

pErrorFunction
   The address of the host error function to be called in the current context.

Return Value

   Returns TRUE if the error callback function is set. Returns FALSE if the function is not set.

Remarks

   Note that each context may have its own error function. There is no direct way to set an error function for all contexts. You may, however, use the same host error function to service multiple contexts.

While your error function can do whatever you see fit, it must have this prototype:

ELZED_API void ELZED_CALL_TYPE YourErrorFunction( long )

The parameter passed to the function is the current error code.

The error callback function for a given context is cleared using lzClearErrorCallback.

Versions

   Introduced in Elzed 1.0.0
   This page describes the version of lzSetErrorCallback active in Elzed 2.5.0 (97: 2.5.0)

See Also

   Contexts


  Copyright  ©  MMXXV  by  R R Le Cropane   •   All Rights Reserved   •   Terms of Use   •   Privacy Policy