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

Possible to add overloaded constructors at runtime? #84

Open
zack-snyder opened this issue Mar 14, 2018 · 0 comments
Open

Possible to add overloaded constructors at runtime? #84

zack-snyder opened this issue Mar 14, 2018 · 0 comments

Comments

@zack-snyder
Copy link

I saw in the examples that you have to set all overloaded constructors at once.

state["ABC"].setClass(kaguya::UserdataMetatable<ABC>()
	.setConstructors<ABC(),ABC(int)>()

Is it possible to add multiple overloaded constructors with multiple calls?
e.g.:

state["ABC"].setClass(kaguya::UserdataMetatable<ABC>()
	.addConstructors<ABC()>();

state["ABC"].setClass(kaguya::UserdataMetatable<ABC>()
	.addConstructors<ABC(int)>();
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