For for workshop compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6088 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a17cdcb77d
commit
b573c5bd88
1 changed files with 1 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ int subf(int x, int y) {
|
|||
%inline %{
|
||||
typedef int Integer;
|
||||
|
||||
extern "C"
|
||||
Integer do_op(Integer x, Integer y, Integer (*op)(Integer, Integer)) {
|
||||
return (*op)(x,y);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue