PostGIS  2.2.8dev-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 169 of file lwutil.c.

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

171  {
172 
173  if ( allocator ) lwalloc_var = allocator;
174  if ( reallocator ) lwrealloc_var = reallocator;
175  if ( freeor ) lwfree_var = freeor;
176 
177  if ( errorreporter ) lwerror_var = errorreporter;
178  if ( noticereporter ) lwnotice_var = noticereporter;
179 }
lwallocator lwalloc_var
Definition: lwutil.c:16
lwreporter lwerror_var
Definition: lwutil.c:24
lwreporter lwnotice_var
Definition: lwutil.c:23
lwreallocator lwrealloc_var
Definition: lwutil.c:17
lwfreeor lwfree_var
Definition: lwutil.c:18