aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-04-01 13:55:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-04-01 13:55:44 -0300
commitf3cfd5bf2b11ba207c71344243892645157900b7 (patch)
tree87e26a041ebbd9a91fa5862a3e312f3159b6a132 /loadlib.c
parent8426d9b4d4df1da3c5b2d759e509ae1c50a86667 (diff)
downloadlua-f3cfd5bf2b11ba207c71344243892645157900b7.tar.gz
lua-f3cfd5bf2b11ba207c71344243892645157900b7.tar.bz2
lua-f3cfd5bf2b11ba207c71344243892645157900b7.zip
Details
Comments + manual + identation + asserts about stack limits that were not allowing the use of the full stack
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/loadlib.c b/loadlib.c
index 6f9fa373..d792dffa 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -708,8 +708,13 @@ static const luaL_Reg ll_funcs[] = {
708 708
709 709
710static void createsearcherstable (lua_State *L) { 710static void createsearcherstable (lua_State *L) {
711 static const lua_CFunction searchers[] = 711 static const lua_CFunction searchers[] = {
712 {searcher_preload, searcher_Lua, searcher_C, searcher_Croot, NULL}; 712 searcher_preload,
713 searcher_Lua,
714 searcher_C,
715 searcher_Croot,
716 NULL
717 };
713 int i; 718 int i;
714 /* create 'searchers' table */ 719 /* create 'searchers' table */
715 lua_createtable(L, sizeof(searchers)/sizeof(searchers[0]) - 1, 0); 720 lua_createtable(L, sizeof(searchers)/sizeof(searchers[0]) - 1, 0);