git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
18 lines
349 B
OpenEdge ABL
18 lines
349 B
OpenEdge ABL
/* File : example.i */
|
|
%module example
|
|
%{
|
|
#include "example.h"
|
|
%}
|
|
|
|
/* Wrap a function taking a pointer to a function */
|
|
extern int do_op(int a, int b, int (*op)(int, int));
|
|
|
|
/* Now install a bunch of "ops" as constants */
|
|
%callback("%(upper)s")
|
|
int add(int, int);
|
|
int sub(int, int);
|
|
int mul(int, int);
|
|
%nocallback
|
|
|
|
extern int (*funcvar)(int,int);
|
|
|