Macro to remove all pointer from the trash.
- Parameters
-
trash | The trash to clean. |
data | The pointer extracted from the trash. |
This macro allow the cleaning of trash
in an easy way. It will remove all pointers from trash
until it's empty.
This macro can be used for freeing the data in the trash, like in the following example:
1 Eina_Trash *trash = NULL;
4 // trash is filled with pointer to some duped strings.
6 EINA_TRASH_CLEAN(&trash, data)
- Note
- this macro is useful when you implement some memory pool.
Referenced by eio_shutdown().