]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Add more Lua types to encoder/decoder
authorDonald Lee <dlqs@gmx.com>
Mon, 9 Aug 2021 20:37:32 +0000 (04:37 +0800)
committerQuentin Young <qlyoung@qlyoung.net>
Tue, 21 Nov 2023 01:45:01 +0000 (20:45 -0500)
Signed-off-by: Donald Lee <dlqs@gmx.com>
lib/frrscript.h

index a662a808d76e8eb2e05df312c2e4f14a78ba6d92..f842dd9f457f1153b3bceea6e018ed57d8210a9c 100644 (file)
@@ -197,6 +197,7 @@ void _lua_decode_noop(lua_State *, ...);
 #define ENCODE_ARGS_WITH_STATE(L, value)                                       \
        _Generic((value), \
 int : lua_pushinteger,                                          \
+long long : lua_pushinteger,                                    \
 long long * : lua_pushintegerp,                                 \
 struct prefix * : lua_pushprefix,                               \
 struct interface * : lua_pushinterface,                         \