mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 21:33:55 +00:00
lib: parens around macro args
Signed-off-by: Donald Lee <dlqs@gmx.com>
This commit is contained in:
parent
08bf2b41b8
commit
67b64027b2
@ -216,13 +216,13 @@ int _frrscript_call_lua(struct lua_function_state *lfs, int nargs);
|
|||||||
*/
|
*/
|
||||||
#define frrscript_call(fs, f, ...) \
|
#define frrscript_call(fs, f, ...) \
|
||||||
({ \
|
({ \
|
||||||
struct lua_function_state lookup = {.name = f}; \
|
struct lua_function_state lookup = {.name = (f)}; \
|
||||||
struct lua_function_state *lfs; \
|
struct lua_function_state *lfs; \
|
||||||
lfs = hash_lookup(fs->lua_function_hash, &lookup); \
|
lfs = hash_lookup((fs)->lua_function_hash, &lookup); \
|
||||||
lfs == NULL ? ({ \
|
lfs == NULL ? ({ \
|
||||||
zlog_err( \
|
zlog_err( \
|
||||||
"frrscript: '%s.lua': '%s': tried to call this function but it was not loaded", \
|
"frrscript: '%s.lua': '%s': tried to call this function but it was not loaded", \
|
||||||
fs->name, f); \
|
(fs)->name, (f)); \
|
||||||
1; \
|
1; \
|
||||||
}) \
|
}) \
|
||||||
: ({ \
|
: ({ \
|
||||||
@ -233,7 +233,7 @@ int _frrscript_call_lua(struct lua_function_state *lfs, int nargs);
|
|||||||
? ({ \
|
? ({ \
|
||||||
zlog_err( \
|
zlog_err( \
|
||||||
"frrscript: '%s.lua': '%s': this function called but returned non-zero exit code. No variables modified.", \
|
"frrscript: '%s.lua': '%s': this function called but returned non-zero exit code. No variables modified.", \
|
||||||
fs->name, f); \
|
(fs)->name, (f)); \
|
||||||
1; \
|
1; \
|
||||||
}) \
|
}) \
|
||||||
: ({ \
|
: ({ \
|
||||||
|
Loading…
Reference in New Issue
Block a user