Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix setup script, port to Lua 5.2 #5

Merged
merged 11 commits into from Feb 21, 2013
Merged

fix setup script, port to Lua 5.2 #5

merged 11 commits into from Feb 21, 2013

Conversation

gward
Copy link
Contributor

@gward gward commented Feb 19, 2013

now it builds cleanly on Ubuntu 12.10 if you install "lua5.1" and "liblua5.1-dev"

(before these patches, it crashed badly and unclearly, by interpreting pkg-config's error message as meaningful output: not good)

and it works with both Lua 5.1 and 5.2!

- type luaL_reg is now luaL_Reg
- define LUA_COMPAT_ALL or LUA_COMPAT_MODULE to enable some deprecated
  features

This still builds with Lua 5.1. It doesn't yet build with 5.2, but
it's closer than it was.
This is less code, and it works with Lua 5.1 and 5.2 as well. (The old
code, using LUA_GLOBALINDEX, does not work with 5.2.)
It's been out for just over a year now, since Dec 2011. Lua 5.1 is
over six years old (Feb 2006).
bastibe added a commit that referenced this pull request Feb 21, 2013
fix setup script, port to Lua 5.2
@bastibe bastibe merged commit bf894ed into bastibe:master Feb 21, 2013
@bastibe
Copy link
Owner

bastibe commented Feb 21, 2013

Seems to work fine on OSX, too. Thank you for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants