Move _LUSH_VERSION global into luaopen_base alongside _VERSION

This commit is contained in:
Cormac Shannon
2026-03-23 19:01:50 +00:00
parent 0df1b50adf
commit cf8022c740
2 changed files with 4 additions and 2 deletions

2
lua.c
View File

@@ -834,8 +834,6 @@ static int pmain (lua_State *L) {
lua_setfield(L, LUA_REGISTRYINDEX, "LUA_NOENV");
}
luai_openlibs(L); /* open standard libraries */
lua_pushstring(L, LUSH_VERSION);
lua_setglobal(L, "_LUSH_VERSION");
createargtable(L, argv, argc, script); /* create table 'arg' */
lua_gc(L, LUA_GCRESTART); /* start GC... */
lua_gc(L, LUA_GCGEN); /* ...in generational mode */