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

Support std::function #38

Closed
jjrv opened this issue Nov 12, 2016 · 2 comments
Closed

Support std::function #38

jjrv opened this issue Nov 12, 2016 · 2 comments

Comments

@jjrv
Copy link
Member

jjrv commented Nov 12, 2016

JavaScript callbacks could perhaps be converted automatically when the C++ parameter type is something like std::function<void(Node*)> lambda.

Plain function pointers probably won't work because we need state to hold a reference to the received JavaScript function.

@jjrv
Copy link
Member Author

jjrv commented Dec 29, 2016

This should now work on the Node.js target in the master branch. Still working on asm.js and reflection.

@jjrv jjrv changed the title Investigate converting lambdas Support std::function Dec 29, 2016
@jjrv
Copy link
Member Author

jjrv commented Jan 21, 2017

This is now implemented in the latest release 0.3.9.

@jjrv jjrv closed this as completed Jan 21, 2017
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

No branches or pull requests

1 participant