From 9d4fa04c41ce44ad8bfaa9cce65e2b26d8b642d1 Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 25 Aug 2021 09:26:32 -0500 Subject: add hs_parse_overloaded_ definition and update hs_parse_overloaded tests --- src/hs_parse_args.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/hs_parse_args.c') diff --git a/src/hs_parse_args.c b/src/hs_parse_args.c index 5a14bd0..685561e 100644 --- a/src/hs_parse_args.c +++ b/src/hs_parse_args.c @@ -111,3 +111,14 @@ void hs_parse_args_(lua_State *L, int n_args, struct hs_arg *arguments) lua_error(L); } } + +int hs_parse_overloaded_(lua_State *L, ...) +{ + va_list args, args_error; + va_start(args, L); + va_copy(args_error, args); + + int choice = 0; + va_end(args); + va_end(args_error); +} -- cgit v1.2.1