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

Lua Network API #1718

Merged
merged 9 commits into from
Feb 7, 2015
Merged

Lua Network API #1718

merged 9 commits into from
Feb 7, 2015

Conversation

madmaxoft
Copy link
Member

Exported the cNetwork API to Lua, so that plugins can use it.

@madmaxoft madmaxoft force-pushed the LuaNetworkAPI branch 5 times, most recently from 41e05b5 to 990b86b Compare January 30, 2015 20:24
@@ -355,7 +366,7 @@ class cLuaState

/** Variadic template: Counting args means add one to the count of the rest. */
template <typename T, typename... Args>
int CountArgs(T, Args... args)
int CountArgs(T &, Args &&... args)
{
return 1 + CountArgs(args...);
}
Copy link
Member

Choose a reason for hiding this comment

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

I should really replace this method with the sizeof... operator.

Copy link
Member Author

Choose a reason for hiding this comment

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

I had no idea that thing existed. It could be the easiest fix.

Copy link
Member

Choose a reason for hiding this comment

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

I'm building the change now. I only discovered it existed yesterday.

@madmaxoft madmaxoft mentioned this pull request Feb 4, 2015
@madmaxoft
Copy link
Member Author

I'll rebase this onto current master to make it auto-mergable again.

} -- Listen callbacks
end, -- fortune

-- TODO: Other services (fortune, daytime, ...)
Copy link
Member

Choose a reason for hiding this comment

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

You say other services like fortune, but it's defined right above here right?

Copy link
Member Author

Choose a reason for hiding this comment

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

yea, forgot to update the comment.

@madmaxoft
Copy link
Member Author

I think this might be ready for a merge

madmaxoft added a commit that referenced this pull request Feb 7, 2015
@madmaxoft madmaxoft merged commit 512b1a6 into master Feb 7, 2015
@madmaxoft madmaxoft deleted the LuaNetworkAPI branch February 7, 2015 17:01
@Howaner
Copy link
Contributor

Howaner commented Feb 7, 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.

4 participants