20,741
edits
Line 49: | Line 49: | ||
* NasalDemo.hxx (HEADERS) | * NasalDemo.hxx (HEADERS) | ||
Next, create the NasalDemo.cxx source file: | Let's create the NasalDemo.hxx header file first: | ||
<syntaxhighlight lang="cpp"> | |||
// NasalDemo.hxx | |||
#ifndef SCRIPTING_NASAL_DEMO_HXX | |||
#define SCRIPTING_NASAL_DEMO_HXX | |||
#include <simgear/nasal/nasal.h> | |||
naRef initNasalDemo(naRef globals, naContext c); | |||
#endif // of SCRIPTING_NASAL_DEMO_HXX | |||
</syntaxhighlight> | |||
That's it. Next, create the NasalDemo.cxx source file: | |||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
// $FG_SRC/Scripting/NasalDemo.cxx | // $FG_SRC/Scripting/NasalDemo.cxx |