mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Change _VERSION to display version of luau in use
This commit is contained in:
parent
46244d2ea7
commit
94e3084086
1 changed files with 2 additions and 1 deletions
|
@ -449,7 +449,8 @@ LUALIB_API int luaopen_base(lua_State* L)
|
|||
|
||||
/* open lib into global table */
|
||||
luaL_register(L, "_G", base_funcs);
|
||||
lua_pushliteral(L, "Luau");
|
||||
lua_pushliteral(L, "Luau 0.503"); /* set _VERSION to display the version of Luau currently in use */
|
||||
|
||||
lua_setglobal(L, "_VERSION"); /* set global _VERSION */
|
||||
|
||||
/* `ipairs' and `pairs' need auxiliary functions as upvalues */
|
||||
|
|
Loading…
Add table
Reference in a new issue