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

Function binding both ways, and return type support #1

Merged
merged 11 commits into from
Dec 3, 2013
Merged

Function binding both ways, and return type support #1

merged 11 commits into from
Dec 3, 2013

Conversation

ThePhD
Copy link
Contributor

@ThePhD ThePhD commented Dec 2, 2013

The following compiles and works with sol as of this pull request: http://pastebin.com/s4Jbjnht
Next step is class binding, and syntactic sugar for the function bindes (to specify overloads and other friends).

…tion invocations on lua functions without explicitly adding sol/functions.hpp
…ng on somewhere that I can quite track down, even when calling a void function with no parameters. I'll have to look into it...
…rk without error in VS 2013: http://pastebin.com/s4Jbjnht

It'll be up to @Rapptz's to make further changes to make sure GCC compiles, but the core of the functionality is there and my work is essentially done.
Class bindings are up next, but really I don't want to even touch those. :c
…two-phase lookup killing me here. :c)

Member functions now work as well for set_function. If performance of `new`ing a type ever becomes too large, we can create a custom allocator for the std::shared_ptr's of the types. We can also up-front allocate for the unordered_map as well.
… being able to find a proper overload. I'm not sure why it's complaining, I'll have to look in more detail soon.
Rapptz added a commit that referenced this pull request Dec 3, 2013
Function binding both ways, and return type support
@Rapptz Rapptz merged commit 5455efe into Rapptz:master Dec 3, 2013
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.

None yet

2 participants