-
Notifications
You must be signed in to change notification settings - Fork 30
SVCD::subscribe [NOT READY] #37
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
Conversation
lua_pushnumber(L, 2530); | ||
lua_call(L, 4, 0); | ||
lua_pushnumber(L, ivkid); | ||
return 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should return the number of results (1 in this case).
men in #000000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you removed SVCD before constructing your message and sending it & wasn't sure if you could do that.
Sincerely, Running with Scissors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed return value
lua_getfield(L, -1, "ivkid"); -team birdpeople |
@jenniferdai the -1 is referring to the placement of the table being indexed to by "ivkid", so it should be fine -TBD |
lua_getfield(L, -1, "ivkid"); | ||
|
||
uint16_t ivkid = luaL_checkinteger(L, -1); | ||
lua_pop(L, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit-picking, but I don't think you need to do this per se. Can't you just leave this on the stack and have it cleaned up later?
- PB for your Jelly or, The Perfect Storm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to stack cleanup to the lua call machinery
See #45 for the revised version |
superseded by #45 |
Implemented subscribe function in C.