summaryrefslogtreecommitdiff
path: root/src/hs_parse_args.c
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-08-25 09:26:32 -0500
committersanine <sanine.not@pm.me>2021-08-25 09:26:32 -0500
commit9d4fa04c41ce44ad8bfaa9cce65e2b26d8b642d1 (patch)
treeb471c97e753a53239dbc61dbb060f24e88a87ff6 /src/hs_parse_args.c
parent801840a44257d95376a5f7d5fe97d87b9f16bd93 (diff)
add hs_parse_overloaded_ definition and update hs_parse_overloaded tests
Diffstat (limited to 'src/hs_parse_args.c')
-rw-r--r--src/hs_parse_args.c11
1 files changed, 11 insertions, 0 deletions
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);
+}