lib: parens around macro args

Signed-off-by: Donald Lee <dlqs@gmx.com>
This commit is contained in:
Donald Lee 2021-07-23 17:15:38 +08:00
parent 08bf2b41b8
commit 67b64027b2

View File

@ -216,13 +216,13 @@ int _frrscript_call_lua(struct lua_function_state *lfs, int nargs);
*/
#define frrscript_call(fs, f, ...) \
({ \
struct lua_function_state lookup = {.name = f}; \
struct lua_function_state lookup = {.name = (f)}; \
struct lua_function_state *lfs; \
lfs = hash_lookup(fs->lua_function_hash, &lookup); \
lfs = hash_lookup((fs)->lua_function_hash, &lookup); \
lfs == NULL ? ({ \
zlog_err( \
"frrscript: '%s.lua': '%s': tried to call this function but it was not loaded", \
fs->name, f); \
(fs)->name, (f)); \
1; \
}) \
: ({ \
@ -233,7 +233,7 @@ int _frrscript_call_lua(struct lua_function_state *lfs, int nargs);
? ({ \
zlog_err( \
"frrscript: '%s.lua': '%s': this function called but returned non-zero exit code. No variables modified.", \
fs->name, f); \
(fs)->name, (f)); \
1; \
}) \
: ({ \