core: New ot_transfer_out_value() macro

This makes out values considerably less typing.
This commit is contained in:
Colin Walters committed 2011-12-02 18:17:06 -05:00
1 parent 32c8166b25
commit 0003e101f6
7 files changed
+59 -136

No files matched your search

+8
View File
@@ -32,6 +32,14 @@
} \
} G_STMT_END;
#define ot_transfer_out_value(outp, srcp) G_STMT_START { \
if (outp) \
{ \
*outp = srcp; \
srcp = NULL; \
} \
} G_STMT_END;
#include <ot-gio-utils.h>
#include <ot-glib-compat.h>
#include <ot-opt-utils.h>