diff options
| author | Donald Lee <dlqs@gmx.com> | 2021-07-03 04:34:50 +0800 |
|---|---|---|
| committer | Donald Lee <dlqs@gmx.com> | 2021-07-03 04:43:50 +0800 |
| commit | cd3c3a98e279326a0fc69a0f0d7620abdf8b404f (patch) | |
| tree | 3497da8f6ff90880fa2db9c561e8bfaea676332a | |
| parent | b16a58fc77748441e1175374b6fd875ec641e630 (diff) | |
doc: space code block
Signed-off-by: Donald Lee <dlqs@gmx.com>
| -rw-r--r-- | doc/developer/scripting.rst | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/developer/scripting.rst b/doc/developer/scripting.rst index dc86948186..1757d41feb 100644 --- a/doc/developer/scripting.rst +++ b/doc/developer/scripting.rst @@ -290,21 +290,21 @@ add the mapping in the following macros in ``frrscript.h``: .. code-block:: diff - #define ENCODE_ARGS_WITH_STATE(L, value) \ + #define ENCODE_ARGS_WITH_STATE(L, value) \ _Generic((value), \ ... - -struct peer * : lua_pushpeer \ - +struct peer * : lua_pushpeer, \ - +struct prefix * : lua_pushprefix \ - )(L, value) + - struct peer * : lua_pushpeer \ + + struct peer * : lua_pushpeer, \ + + struct prefix * : lua_pushprefix \ + )(L, value) - #define DECODE_ARGS_WITH_STATE(L, value) \ + #define DECODE_ARGS_WITH_STATE(L, value) \ _Generic((value), \ ... - -struct peer * : lua_decode_peer \ - +struct peer * : lua_decode_peer, \ - +struct prefix * : lua_decode_prefix \ - )(L, -1, value) + - struct peer * : lua_decode_peer \ + + struct peer * : lua_decode_peer, \ + + struct prefix * : lua_decode_prefix \ + )(L, -1, value) At compile time, the compiler will search for encoders/decoders for the type of @@ -322,11 +322,11 @@ For that, use ``lua_decode_noop``: .. code-block:: diff - #define DECODE_ARGS_WITH_STATE(L, value) \ + #define DECODE_ARGS_WITH_STATE(L, value) \ _Generic((value), \ ... - +const struct prefix * : lua_decode_noop \ - )(L, -1, value) + + const struct prefix * : lua_decode_noop \ + )(L, -1, value) .. note:: |
