Rename: _LUSH_VERSION to _VERSION_LUSH

This commit is contained in:
Cormac Shannon
2026-03-23 19:10:43 +00:00
parent cf8022c740
commit 440d02cfbd

View File

@@ -540,7 +540,7 @@ static const luaL_Reg base_funcs[] = {
/* placeholders */ /* placeholders */
{LUA_GNAME, NULL}, {LUA_GNAME, NULL},
{"_VERSION", NULL}, {"_VERSION", NULL},
{"_LUSH_VERSION", NULL}, {"_VERSION_LUSH", NULL},
{NULL, NULL} {NULL, NULL}
}; };
@@ -555,9 +555,9 @@ LUAMOD_API int luaopen_base (lua_State *L) {
/* set global _VERSION */ /* set global _VERSION */
lua_pushliteral(L, LUA_VERSION); lua_pushliteral(L, LUA_VERSION);
lua_setfield(L, -2, "_VERSION"); lua_setfield(L, -2, "_VERSION");
/* set global _LUSH_VERSION */ /* set global _VERSION_LUSH */
lua_pushliteral(L, LUSH_VERSION); lua_pushliteral(L, LUSH_VERSION);
lua_setfield(L, -2, "_LUSH_VERSION"); lua_setfield(L, -2, "_VERSION_LUSH");
return 1; return 1;
} }