PostGIS  2.3.7dev-r@@SVN_REVISION@@
void lwgeom_set_handlers ( lwallocator  allocator,
lwreallocator  reallocator,
lwfreeor  freeor,
lwreporter  errorreporter,
lwreporter  noticereporter 
)

This function is called by programs which want to set up custom handling for memory management and error reporting.

Only non-NULL values change their respective handler

Definition at line 197 of file lwutil.c.

References lwalloc_var, lwerror_var, lwfree_var, lwnotice_var, and lwrealloc_var.

199  {
200 
201  if ( allocator ) lwalloc_var = allocator;
202  if ( reallocator ) lwrealloc_var = reallocator;
203  if ( freeor ) lwfree_var = freeor;
204 
205  if ( errorreporter ) lwerror_var = errorreporter;
206  if ( noticereporter ) lwnotice_var = noticereporter;
207 }
lwallocator lwalloc_var
Definition: lwutil.c:44
lwreporter lwerror_var
Definition: lwutil.c:52
lwreporter lwnotice_var
Definition: lwutil.c:51
lwreallocator lwrealloc_var
Definition: lwutil.c:45
lwfreeor lwfree_var
Definition: lwutil.c:46