diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-02-07 14:20:43 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-02-07 14:20:43 -0300 |
commit | 7360f8d0fd91344deb583ff76b8250a1883dcd4c (patch) | |
tree | e5fb364c646cbc61b1571063d375582356b43c6a | |
parent | 6063c47031afa2d62e6038fcf8f3c805785c7df3 (diff) | |
download | lua-7360f8d0fd91344deb583ff76b8250a1883dcd4c.tar.gz lua-7360f8d0fd91344deb583ff76b8250a1883dcd4c.tar.bz2 lua-7360f8d0fd91344deb583ff76b8250a1883dcd4c.zip |
Removed deprecated function 'setcstacklimit'
Diffstat (limited to '')
-rw-r--r-- | ldblib.c | 9 | ||||
-rw-r--r-- | lstate.c | 6 | ||||
-rw-r--r-- | lua.h | 1 |
3 files changed, 0 insertions, 16 deletions
@@ -446,14 +446,6 @@ static int db_traceback (lua_State *L) { | |||
446 | } | 446 | } |
447 | 447 | ||
448 | 448 | ||
449 | static int db_setcstacklimit (lua_State *L) { | ||
450 | int limit = (int)luaL_checkinteger(L, 1); | ||
451 | int res = lua_setcstacklimit(L, limit); | ||
452 | lua_pushinteger(L, res); | ||
453 | return 1; | ||
454 | } | ||
455 | |||
456 | |||
457 | static const luaL_Reg dblib[] = { | 449 | static const luaL_Reg dblib[] = { |
458 | {"debug", db_debug}, | 450 | {"debug", db_debug}, |
459 | {"getuservalue", db_getuservalue}, | 451 | {"getuservalue", db_getuservalue}, |
@@ -471,7 +463,6 @@ static const luaL_Reg dblib[] = { | |||
471 | {"setmetatable", db_setmetatable}, | 463 | {"setmetatable", db_setmetatable}, |
472 | {"setupvalue", db_setupvalue}, | 464 | {"setupvalue", db_setupvalue}, |
473 | {"traceback", db_traceback}, | 465 | {"traceback", db_traceback}, |
474 | {"setcstacklimit", db_setcstacklimit}, | ||
475 | {NULL, NULL} | 466 | {NULL, NULL} |
476 | }; | 467 | }; |
477 | 468 | ||
@@ -66,12 +66,6 @@ void luaE_setdebt (global_State *g, l_obj debt) { | |||
66 | } | 66 | } |
67 | 67 | ||
68 | 68 | ||
69 | LUA_API int lua_setcstacklimit (lua_State *L, unsigned int limit) { | ||
70 | UNUSED(L); UNUSED(limit); | ||
71 | return LUAI_MAXCCALLS; /* warning?? */ | ||
72 | } | ||
73 | |||
74 | |||
75 | CallInfo *luaE_extendCI (lua_State *L) { | 69 | CallInfo *luaE_extendCI (lua_State *L) { |
76 | CallInfo *ci; | 70 | CallInfo *ci; |
77 | lua_assert(L->ci->next == NULL); | 71 | lua_assert(L->ci->next == NULL); |
@@ -489,7 +489,6 @@ LUA_API lua_Hook (lua_gethook) (lua_State *L); | |||
489 | LUA_API int (lua_gethookmask) (lua_State *L); | 489 | LUA_API int (lua_gethookmask) (lua_State *L); |
490 | LUA_API int (lua_gethookcount) (lua_State *L); | 490 | LUA_API int (lua_gethookcount) (lua_State *L); |
491 | 491 | ||
492 | LUA_API int (lua_setcstacklimit) (lua_State *L, unsigned int limit); | ||
493 | 492 | ||
494 | struct lua_Debug { | 493 | struct lua_Debug { |
495 | int event; | 494 | int event; |