The SWIG interface file

The interface file defines the Python programming interface to the C library, here all three functions in draw.h:
/* file: draw.i */
%module draw
%{
#include "draw.h"
%}

%include draw.h
or (if we only want setSeed and gaussian):
/* file: draw.i */
%module draw
%{
#include "draw.h"
%}

void setSeed(int seed);
double gaussian(double mean, double stdev);

previousnexttable of contents