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

Ability to bind a custom constructors/methods #23

Open
deadlocklogic opened this issue Sep 17, 2022 · 0 comments
Open

Ability to bind a custom constructors/methods #23

deadlocklogic opened this issue Sep 17, 2022 · 0 comments

Comments

@deadlocklogic
Copy link

Suppose the following:

struct Test {
};

I want to be able to bind a custom external function as a method like so:

void func(Test& self) {
}

and then on the javascript side I would like to be able to call it as a member method like:

new Test().func()

Many binding libs for python/lua for instance can do this easily, even they can accept lambda functions.
Is there a way to do so here? By the way I like this lib as it is almost the only one which compiles with newer nodejs versions.
Thanks.

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