]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: format macro slashes
authorDonald Lee <dlqs@gmx.com>
Wed, 7 Jul 2021 16:28:19 +0000 (00:28 +0800)
committerDonald Lee <dlqs@gmx.com>
Sat, 17 Jul 2021 22:32:03 +0000 (06:32 +0800)
Signed-off-by: Donald Lee <dlqs@gmx.com>
lib/frrscript.h

index d2791a5a8b6075f4aa3a35ec28918ee368480360..85e7b15cd318df232b76b45349bbf80ef832c15a 100644 (file)
@@ -192,31 +192,33 @@ int _frrscript_call_lua(struct lua_function_state *lfs, int nargs);
  *    0 if the script ran successfully, nonzero otherwise.
  */
 
-#define frrscript_call(fs, f, ...)                                           \
-       ({                                                                         \
-               struct lua_function_state lookup = {.name = f};                          \
-               struct lua_function_state *lfs;                                          \
-               lfs = hash_lookup(fs->lua_function_hash, &lookup);                       \
-               lfs == NULL ? ({                                                         \
-                       zlog_err(                                                              \
-                               "Lua script call: tried to call '%s' in '%s' which was not loaded",  \
-                               f, fs->name);                                                        \
-                       1;                                                                     \
-               })                                                                       \
-               : ({                                                                     \
-                         MAP_LISTS(ENCODE_ARGS, ##__VA_ARGS__);                               \
-                         _frrscript_call_lua(lfs, PP_NARG(__VA_ARGS__));                      \
-                 }) != 0                                                                \
-                       ? ({                                                                   \
-                                 zlog_err(                                                          \
-                                         "Lua script call: '%s' in '%s' returned non-zero exit code",     \
-                                         f, fs->name);                                                    \
-                                 1;                                                                 \
-                         })                                                                   \
-                       : ({                                                                   \
-                                 MAP_LISTS(DECODE_ARGS, ##__VA_ARGS__);                             \
-                                 0;                                                                 \
-                         });                                                                  \
+#define frrscript_call(fs, f, ...)                                                                                   \
+       ({                                                                                                           \
+               struct lua_function_state lookup = {.name = f};                                                      \
+               struct lua_function_state *lfs;                                                                      \
+               lfs = hash_lookup(fs->lua_function_hash, &lookup);                                                   \
+               lfs == NULL ? ({                                                                                     \
+                       zlog_err(                                                                                    \
+                               "Lua script call: tried to call '%s' in '%s' which was not loaded",                  \
+                               f, fs->name);                                                                        \
+                       1;                                                                                           \
+               })                                                                                                   \
+                           : ({                                                                                     \
+                                     MAP_LISTS(ENCODE_ARGS, ##__VA_ARGS__);                                         \
+                                     _frrscript_call_lua(                                                           \
+                                             lfs, PP_NARG(__VA_ARGS__));                                            \
+                             }) != 0                                                                                \
+                                     ? ({                                                                           \
+                                               zlog_err(                                                            \
+                                                       "Lua script call: '%s' in '%s' returned non-zero exit code", \
+                                                       f, fs->name);                                                \
+                                               1;                                                                   \
+                                       })                                                                           \
+                                     : ({                                                                           \
+                                               MAP_LISTS(DECODE_ARGS,                                               \
+                                                         ##__VA_ARGS__);                                            \
+                                               0;                                                                   \
+                                       });                                                                          \
        })
 
 /*