mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 02:30:08 +01:00
parent
70c0defe75
commit
a72dd80a94
1 changed files with 9 additions and 0 deletions
|
|
@ -111,6 +111,15 @@
|
|||
/* macro to return strlen() of a compile time string. */
|
||||
#define STRLEN(str) ( sizeof ("" str) - 1 )
|
||||
|
||||
#define NM_SET_OUT(out_val, value) \
|
||||
G_STMT_START { \
|
||||
typeof(*(out_val)) *_out_val = (out_val); \
|
||||
\
|
||||
if (_out_val) { \
|
||||
*_out_val = (value); \
|
||||
} \
|
||||
} G_STMT_END
|
||||
|
||||
/********************************************************/
|
||||
|
||||
#define _NM_IN_SET_EVAL_1(op, x, y1) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue