- rename example modules from "example" to "swigexample", to avoid a warning from shadowing the Octave built-in function "example" - remove deprecated "static" Makefile targets: there is no longer an option to build static Octave modules in the Examples Makefile - emacs whitespace cleanup run on all files
16 lines
335 B
OpenEdge ABL
16 lines
335 B
OpenEdge ABL
/* File : example.i */
|
|
%module swigexample
|
|
|
|
%{
|
|
#include "example.h"
|
|
%}
|
|
|
|
/* Let's just grab the original header file here */
|
|
%include "example.h"
|
|
|
|
/* Now instantiate some specific template declarations */
|
|
|
|
%template(maxint) max<int>;
|
|
%template(maxdouble) max<double>;
|
|
%template(vecint) vector<int>;
|
|
%template(vecdouble) vector<double>;
|