Add support for registering foreign methods that return foreign objects
Still a bit work in progress but functioning
This commit is contained in:
parent
9c147b1a6e
commit
1fa6d62f17
15 changed files with 264 additions and 45 deletions
|
@ -112,7 +112,7 @@ int main() {
|
|||
.add_callback(false, "math_vector", "MathVector", "z", make_method_bindable<&Vector<double>::z>());
|
||||
|
||||
vm.class_manager()
|
||||
.add_class_maker("math_vector", "MathVector", &make_foreign_class<Vector<double>,
|
||||
.add_class_maker("math_vector", "MathVector", make_foreign_class<Vector<double>,
|
||||
double, //single value constructor
|
||||
std::tuple<double, double, double>, //x,y,z constructor
|
||||
std::tuple<> //default constructor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue