Open Source
swig.txt
Associated article: SWIG and Automated C/C++ Scripting Extensions
Tags: C/C++ Tools Open Source
Published source code accompanying the article by David Beazley in which he discusses SWIG, short for "Simplified Wrapper and Interface Generator"--a freely-available tool that lets you generate interfaces to a variety of scripting languages from a common interface description. Also see SWIG1_1.ZIP.
SWIG: Automated C/C++ Scripting Extensions by David Beazley Example 1: // example.i : Sample SWIG interface file %module example extern int fact(int); Example 2: (a) use example; print example::fact(4); 24 (b) >>> import example >>> example.fact(4) 24 &...


