danielga / garrysmod_common

A repository of common bits for compilation projects based on Garry's Mod.
https://github.com/danielga/garrysmod_common
Other
115 stars 38 forks source link

Catch up with the latest LuaJIT updates in GMod #71

Closed Cheatoid closed 3 years ago

Cheatoid commented 3 years ago

This is still on even older version of LuaJIT 2.0.4, damn Daniel, this is outdated by two luashared updates... (i don't remember the changes between 2.0.4 and 2.0.5, so you're on your own for updating that.)

The following is the set of changes I have noticed between LuaJIT 2.0.5 (previous luashared version) and LuaJIT 2.1.0-beta3 (current luashared version).

tldr

lauxlib.h (click meee) - Remove macros: `luaL_getn`, `luaL_setn`, `lua_ref`, `lua_unref`,`lua_getref` and `luaL_reg` - Add functions (new exports): `luaL_setfuncs`, `luaL_pushmodule`, `luaL_testudata` and `luaL_setmetatable` - Add macros: `luaL_newlibtable` and `luaL_newlib`
lua.h (click meee) - Add macro: `LUA_OK` (0) for thread status - Add macro: `LUA_GCISRUNNING` (9) option for gc - Add functions (new exports): `lua_version`, `lua_copy`, `lua_tonumberx`, `lua_tointegerx` and `lua_isyieldable`
luaconf.h (click meee) - Remove macros: LUA_COMPAT_MOD and LUA_COMPAT_GFIND
luajit.h (click meee) - Update macros: `LUAJIT_VERSION`, `LUAJIT_VERSION_NUM` and `LUAJIT_VERSION_SYM` - Add typedef: `luaJIT_profile_callback` - Add functions (new exports): `luaJIT_profile_start`, `luaJIT_profile_stop` and `luaJIT_profile_dumpstack`
danielga commented 3 years ago

Updated the x86-64 branch with LuaJIT 2.1.0-beta3 headers.