mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
Removed compatibility option LUA_COMPAT_GCPARAMS
The meaning of different GC parameters changed, so there is point in supporting old values for them. The new code simply ignores the parameters when changing the GC mode, so the incompatibility is small.
This commit is contained in:
parent
e2cc179454
commit
e81f586001
6 changed files with 20 additions and 53 deletions
2
lua.c
2
lua.c
|
|
@ -646,7 +646,7 @@ static int pmain (lua_State *L) {
|
|||
luai_openlibs(L); /* open standard libraries */
|
||||
createargtable(L, argv, argc, script); /* create table 'arg' */
|
||||
lua_gc(L, LUA_GCRESTART); /* start GC... */
|
||||
lua_gc(L, LUA_GCGEN, 0, 0); /* ...in generational mode */
|
||||
lua_gc(L, LUA_GCGEN); /* ...in generational mode */
|
||||
if (!(args & has_E)) { /* no option '-E'? */
|
||||
if (handle_luainit(L) != LUA_OK) /* run LUA_INIT */
|
||||
return 0; /* error running LUA_INIT */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue