Skip to content

Added support for Lua 5.2+ #2

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

Closed
wants to merge 3 commits into from
Closed

Conversation

JorjBauer
Copy link

Converted to rely on upvalues instead of the now-removed environment table

@@ -263,27 +265,29 @@ static int l_signal (lua_State *L)
else
option = (luaL_checktype(L, 2, LUA_TFUNCTION), SET);

lua_pushvalue(L, lua_upvalueindex(LUA_SIGNAL_ENV)); // push signal table upvalue
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's necessary to push the upvalue here (and elsewhere). Can't you just do lua_rawget(L, lua_upvalueindex(LUA_SIGNAL_ENV) below?

@batrick
Copy link
Owner

batrick commented Aug 25, 2015

@JorjBauer, thanks I appreciate the PR. Can you put the rockspec in a different PR? Thanks.

@batrick batrick self-assigned this Aug 25, 2015
@batrick
Copy link
Owner

batrick commented Aug 25, 2015

Superseded by #3.

@batrick batrick closed this Aug 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants