Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G


Jump to: navigation, search

Howto:Extend Nasal

65 bytes added, 22:18, 26 March 2013
Status (cppbind)
As of 03/2013, this article should be considered depreciated, we have a new C++-based API for exposing C/C++ functions/data structures to Nasal and vice versa in [https://gitorious.org/fg/simgear/trees/next/simgear/nasal/cppbind $SG_SRC/nasal/cppbind]. Usually, there should be no need to use the bare Nasal APIs anymore for exposing functions/data to Nasal or Nasal-space types to C++, except for people working on the '''cppbind''' framework itself.
The cppbind framework is much more generic and high level than the bare APIsdocumented here, it includes unit testing support and makes use of modern C++ features like templates and STL support, including SimGear specific types like SGPath /SGGeod etc, its overhead is fairly small (not just performance, but also LoC to create new bindings).The cppbind framework is already extensively used by the [[Canvas]] systemand the NasalPositioned bindings, both of which is are a good place to look for code examples.
== Scope ==

Navigation menu