Changelog, Swig Starter Kit

Swig Starter Kit 0.0.3 Released - New Language Support

Release 0.0.3 of Swig Starter Kit was just released.

This release adds support for the following languages:

  • Perl
  • Python
  • Ruby
  • Java
  • C#

There is also preliminary support for PHP added, the PHP module builds but I cannot get it to load. Anyone with experience with this, please help if you can.

Swig Starter Kit 0.0.2

Release 0.0.2 of Swig Starter Kit was just released.

This release sees the addition of template usage examples, including custom function templates and STL usage.

Using a SWIG template declaration we are able to instantiate a specific template and use it from our script code.

//SWIG Code
%include <std_string.i>
%include <std_vector.i>
%template(String_Vector) std::vector<std::string>;

We can now use the std container classes with our Lua code:

 

Swig Starter Kit 0.0.1

I just put up the first release of a new project, Swig Starter Kit, on google code.

The Swig Starter Kit starts with the sample C++ class:

class Script_Interface
{
  public:
    Script_Interface();
    ~Script_Interface();
 
    int get_a_value();
};

And shows how you can go about utilizing that C++ class from Lua:

require ('SwigStarterKit');
 
var = SwigStarterKit.Script_Interface();
print (var:get_a_value());

Syndicate content