From c5f9744c33df5a9d335691d73fbeb1ad8d0e58d4 Mon Sep 17 00:00:00 2001 From: Donald Lee Date: Thu, 29 Jul 2021 05:51:58 +0800 Subject: [PATCH] docs: update parens Signed-off-by: Donald Lee --- doc/developer/scripting.rst | 4 ++-- 1 file 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 -- 2.39.5