lib: Add more Lua types to encoder/decoder

Signed-off-by: Donald Lee <dlqs@gmx.com>
This commit is contained in:
Donald Lee 2021-08-10 04:37:32 +08:00 committed by Quentin Young
parent 2faab06ed3
commit ac3fdc60df

View File

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