PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_set_handlers()

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 158 of file lwutil.c.

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

160  {
161 
162  if ( allocator ) lwalloc_var = allocator;
163  if ( reallocator ) lwrealloc_var = reallocator;
164  if ( freeor ) lwfree_var = freeor;
165 
166  if ( errorreporter ) lwerror_var = errorreporter;
167  if ( noticereporter ) lwnotice_var = noticereporter;
168 }
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