summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Lee <dlqs@gmx.com>2021-07-29 05:51:58 +0800
committerDonald Lee <dlqs@gmx.com>2021-07-29 05:52:22 +0800
commitc5f9744c33df5a9d335691d73fbeb1ad8d0e58d4 (patch)
tree69b2d4ccd7844126e8467eae3e710c398203aa11
parentb5e790ee4d2d94f9dead7914e0de97ac0e0a470e (diff)
docs: update parens
Signed-off-by: Donald Lee <dlqs@gmx.com>
-rw-r--r--doc/developer/scripting.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/developer/scripting.rst b/doc/developer/scripting.rst
index 7251bafb05..d543ed3560 100644
--- a/doc/developer/scripting.rst
+++ b/doc/developer/scripting.rst
@@ -457,7 +457,7 @@ add the mapping in the following macros in ``frrscript.h``:
- struct peer * : lua_pushpeer \
+ struct peer * : lua_pushpeer, \
+ struct prefix * : lua_pushprefix \
- )(L, value)
+ )((L), (value))
#define DECODE_ARGS_WITH_STATE(L, value) \
_Generic((value), \
@@ -465,7 +465,7 @@ add the mapping in the following macros in ``frrscript.h``:
- struct peer * : lua_decode_peer \
+ struct peer * : lua_decode_peer, \
+ struct prefix * : lua_decode_prefix \
- )(L, -1, value)
+ )((L), -1, (value))
At compile time, the compiler will search for encoders/decoders for the type of