Set a handler for garbage collections.
Whenever a garbage collection is required, a test is done to see if a handler for this event is supplied by the user and if such exists then it is called, both before and after the garbage collection takes places. This is indicated by an integer flag pre passed to the handler, which will be one before garbage collection and zero after garbage collection. This function sets the handler to be handler. If a void my_gbc_handler(int pre, bddGbcStat *stat) { ... }
|