Howto:Extend Nasal: Difference between revisions

Jump to navigation Jump to search
m
(Re-link lots of things)
Line 4: Line 4:


== Status (cppbind) ==
== Status (cppbind) ==
As of 03/2013, this article should be considered depreciated, we have [[Nasal/CppBind]], a new C++-based API for exposing C/C++ functions/data structures to Nasal and vice versa in {{simgear file|simgear/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.  
As of 03/2013, this article should be considered deprecated, we have [[Nasal/CppBind]], a new C++-based API for exposing C/C++ functions/data structures to Nasal and vice versa in {{simgear file|simgear/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 APIs documented 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 much more generic and high level than the bare APIs documented 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).

Navigation menu