Cleaner up the previous commit
This commit is contained in:
parent
4c888034f8
commit
16dce195c1
@ -30,15 +30,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#if ! GLIB_CHECK_VERSION (2, 34, 0)
|
#if ! GLIB_CHECK_VERSION (2, 34, 0)
|
||||||
static void
|
#define g_clear_pointer(p, destroy) \
|
||||||
g_clear_pointer (void **pointer, void (*destroy) (void *))
|
G_STMT_START if (*(p)) { (destroy) (*(p)); *(p) = NULL; } G_STMT_END
|
||||||
{
|
|
||||||
if (*pointer)
|
|
||||||
{
|
|
||||||
destroy (*pointer);
|
|
||||||
*pointer = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // ! GLIB_CHECK_VERSION (2, 34)
|
#endif // ! GLIB_CHECK_VERSION (2, 34)
|
||||||
|
|
||||||
/** User interface string for GtkBuilder. */
|
/** User interface string for GtkBuilder. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user