lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 7360f8d0fd91344deb583ff76b8250a1883dcd4c
parent 6063c47031afa2d62e6038fcf8f3c805785c7df3
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed,  7 Feb 2024 14:20:16 -0300

Removed deprecated function 'setcstacklimit'

Diffstat:
Mldblib.c | 9---------
Mlstate.c | 6------
Mlua.h | 1-
3 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/ldblib.c b/ldblib.c @@ -446,14 +446,6 @@ static int db_traceback (lua_State *L) { } -static int db_setcstacklimit (lua_State *L) { - int limit = (int)luaL_checkinteger(L, 1); - int res = lua_setcstacklimit(L, limit); - lua_pushinteger(L, res); - return 1; -} - - static const luaL_Reg dblib[] = { {"debug", db_debug}, {"getuservalue", db_getuservalue}, @@ -471,7 +463,6 @@ static const luaL_Reg dblib[] = { {"setmetatable", db_setmetatable}, {"setupvalue", db_setupvalue}, {"traceback", db_traceback}, - {"setcstacklimit", db_setcstacklimit}, {NULL, NULL} }; diff --git a/lstate.c b/lstate.c @@ -66,12 +66,6 @@ void luaE_setdebt (global_State *g, l_obj debt) { } -LUA_API int lua_setcstacklimit (lua_State *L, unsigned int limit) { - UNUSED(L); UNUSED(limit); - return LUAI_MAXCCALLS; /* warning?? */ -} - - CallInfo *luaE_extendCI (lua_State *L) { CallInfo *ci; lua_assert(L->ci->next == NULL); diff --git a/lua.h b/lua.h @@ -489,7 +489,6 @@ LUA_API lua_Hook (lua_gethook) (lua_State *L); LUA_API int (lua_gethookmask) (lua_State *L); LUA_API int (lua_gethookcount) (lua_State *L); -LUA_API int (lua_setcstacklimit) (lua_State *L, unsigned int limit); struct lua_Debug { int event;