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

How to define virtual (computable) property? #16

Open
c-smile opened this issue Sep 23, 2020 · 0 comments
Open

How to define virtual (computable) property? #16

c-smile opened this issue Sep 23, 2020 · 0 comments

Comments

@c-smile
Copy link

c-smile commented Sep 23, 2020

I have C++ class:

class Foo {
   int get_bar();
   void set_bar( int v );
}

and I'd like to wrap it as JS class that has bar defined as instance property.

As far as I can see .fun() allows to wrap either member variables or methods of a class, but not virtual properties represented by getter/setter pair, am I correct?

ftk added a commit that referenced this issue Sep 27, 2020
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