From 7f96376ffdd63397a4265975ec4018c4465094f9 Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 30 Jun 2026 04:30:10 -0500 Subject: table.contains and some check saftey --- src/table.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/table.h') diff --git a/src/table.h b/src/table.h index b114cd2..27cbaf7 100644 --- a/src/table.h +++ b/src/table.h @@ -7,6 +7,7 @@ void i_shuffle(double*, size_t); uint64_t i_len(lua_State*,int); +int l_contains(lua_State*); int l_len(lua_State*); //[double+int] -> i int l_reverse(lua_State*); //[double+int] -> arr[N] int l_max(lua_State*); //[double+int] -> i @@ -28,6 +29,7 @@ int l_dup(lua_State*); #warning "docs needed here" static const luaL_Reg table_function_list [] = { + {"contains",l_contains}, {"len",l_len}, {"reverse",l_reverse}, //no docs {"max",l_max}, //no docs -- cgit v1.2.3