Commit graph

7 commits

Author SHA1 Message Date
8a721494b1 Refactor so that make_method_bindable also accepts free functions now
This includes pointers to static member functions too of course.
`make_method_bindable` got renamed into the more generic
`make_function_bindable` because it deals with all functions
now, not only member functions.
2022-05-19 15:05:18 +02:00
65fee858dd Temporary commit - work in progress 2022-05-19 01:06:09 +02:00
1fa6d62f17 Add support for registering foreign methods that return foreign objects
Still a bit work in progress but functioning
2022-05-18 18:48:18 +02:00
816a8af654 Fix memory leak, improve code 2022-05-15 20:17:42 +02:00
692393285d Fix memory leaks 2022-05-15 19:19:56 +02:00
4d3dfce93f Improve and cleanup make_foreign_class()
No need to have two versions of this.
Static assert when users specify ambiguous overloads.
Currently overloads are discriminated only by
parameter count, not types, so we need to enforce this.
2022-05-15 17:01:57 +02:00
b8066a3f34 Add working example of constructor overloading 2022-05-15 16:03:29 +02:00