17 lines
375 B
OpenEdge ABL
17 lines
375 B
OpenEdge ABL
/* File : example.i */
|
|
%module example
|
|
|
|
/* Wraps constants as Scilab variables (instead of getter functions) */
|
|
%scilabconst(1);
|
|
|
|
#define ICONST 42
|
|
#define FCONST 2.1828
|
|
#define SCONST "Hello World"
|
|
|
|
// Constants expressions are also accepted
|
|
#define EXPR ICONST + 3*FCONST
|
|
|
|
// SWIG also offers to define constants
|
|
%constant int iconst = 37;
|
|
%constant double fconst = 42.2;
|
|
|