-
Notifications
You must be signed in to change notification settings - Fork 189
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
No longer possible to get the lua_State from a uv_loop_t #358
Comments
As far as I understand, this is no longer possible, as each Relevant PRs/issues:
|
Re-opening this in case we want to try to make it possible to get a |
The macro defined here is incorrect:
luv/src/luv.h
Line 100 in 8a04eeb
In the following example:
lua_State *L = luv_state(uv_req->loop);
will be expanded to:
lua_State *L = (luv_context(uv_req->loop)->uv_req->loop));
causing:
error: 'luv_ctx_t' has no member named 'uv_req'
An improvement would be:
#define luv_state(loop) (luv_context(loop)->L)
Secondly, since luv_context requires lua_State as an argument this macro can no longer be used to go from a uv_loop_t to a lua_State and is effectively useless. If possible I would like the old behaviour back.
The text was updated successfully, but these errors were encountered: