core: New ot_transfer_out_value() macro
This makes out values considerably less typing.
This commit is contained in:
1 parent
32c8166b25
commit
0003e101f6
7 files changed
+59
-136
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user