{
}
+
+/*
+ * Noop decoder for int.
+ */
+void lua_decode_int_noop(lua_State *L, int idx, int i)
+{
+}
+
/*
* Logging.
*
void *lua_tostringp(lua_State *L, int idx);
/*
- * No-op decocder
+ * No-op decocders
*/
void lua_decode_noop(lua_State *L, int idx, const void *ptr);
+void lua_decode_int_noop(lua_State *L, int idx, int i);
+
/*
* Retrieve an integer from table on the top of the stack.
*
*/
#define ENCODE_ARGS_WITH_STATE(L, value) \
_Generic((value), \
+int: lua_pushinteger, \
long long * : lua_pushintegerp, \
struct prefix * : lua_pushprefix, \
struct interface * : lua_pushinterface, \
#define DECODE_ARGS_WITH_STATE(L, value) \
_Generic((value), \
+int : lua_decode_int_noop, \
long long * : lua_decode_integerp, \
struct prefix * : lua_decode_prefix, \
struct interface * : lua_decode_interface, \