]> git.mxchange.org Git - simgear.git/commit
cppbind: rework to allow binding nearly everything.
authorThomas Geymayer <tomgey@gmail.com>
Sun, 3 Mar 2013 18:26:25 +0000 (19:26 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 3 Mar 2013 18:28:39 +0000 (19:28 +0100)
commitf21127fd4aa742e26d554cdc98911b6c7671021c
treef1bbffa7b38b3830e8e9d4d71c0e124a0df23f78
parent0bc80051000230b81cf60360648b09fe99fc2bae
cppbind: rework to allow binding nearly everything.

It is now possible to register all types of member function
and free functions as methods for nasal::Ghost objects.
The return value and arguments are converte automatically
to the required types.

Also usage is simplified by removing replacing the old
method and method_func with a single method function
which only needs a name for the method and something
callable.
simgear/nasal/cppbind/CMakeLists.txt
simgear/nasal/cppbind/Ghost.hxx
simgear/nasal/cppbind/cppbind_test.cxx
simgear/nasal/cppbind/detail/functor_templates.hxx [new file with mode: 0644]
simgear/nasal/cppbind/from_nasal.hxx
simgear/nasal/cppbind/to_nasal.cxx
simgear/nasal/cppbind/to_nasal.hxx