Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Did some various fixes particular to CMake detection so it can better find later versions of Lua as well as LuaJIT.
Also had to fix some of the lua C calls carryover from pre Lua 5.2, like
luaL_register
andlua_strlen
. I knowLUA_COMPAT_MODULE
can be defined for backwards compatibility but it assumes that the lua runtime hasluaL_openlib
compiled in (luaL_register
is a#define
intoluaL_openlib
. I ran into linking issues since my runtime didn't have it.It seems to make more sense to just make luacom use the latest Lua C api and put any compatibility code in LuaCompat.* to smooth out version differences. It helps reduce
#ifdef
litter into other source files.Last thing, added a rockspec file that uses cmake to build since it's already in the project.