summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgsystem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgsystem.h b/libgsystem.h
index c7aea6c..60884b6 100644
--- a/libgsystem.h
+++ b/libgsystem.h
@@ -25,6 +25,14 @@
G_BEGIN_DECLS
+#define gs_transfer_out_value(outp, srcp) G_STMT_START { \
+ if (outp) \
+ { \
+ *(outp) = *(srcp); \
+ *(srcp) = NULL; \
+ } \
+ } G_STMT_END;
+
#include <gsystem-console.h>
#include <gsystem-file-utils.h>
#include <gsystem-shutil.h>