fix VC7.1 compilation problem
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7017 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
006097c0a9
commit
7b6b8d042c
2 changed files with 10 additions and 6 deletions
|
|
@ -12,6 +12,10 @@
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int foof(int a) {
|
||||||
|
return 3*a;
|
||||||
|
}
|
||||||
|
|
||||||
struct A
|
struct A
|
||||||
{
|
{
|
||||||
static int bar(int a) {
|
static int bar(int a) {
|
||||||
|
|
@ -23,12 +27,9 @@
|
||||||
return -a;
|
return -a;
|
||||||
}
|
}
|
||||||
|
|
||||||
friend int foof(int a)
|
//friend int foof(int a);
|
||||||
{
|
|
||||||
return 3*a;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
extern "C" int foobar(int a, int (*pf)(int a)) {
|
extern "C" int foobar(int a, int (*pf)(int a)) {
|
||||||
return pf(a);
|
return pf(a);
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,10 @@ namespace ns1 {
|
||||||
typedef void (*TFunc2)(CTemplate<CFoo> arg); // OK
|
typedef void (*TFunc2)(CTemplate<CFoo> arg); // OK
|
||||||
typedef void (*TFunc3)(CTemplate<CFoo>* arg); // OK
|
typedef void (*TFunc3)(CTemplate<CFoo>* arg); // OK
|
||||||
|
|
||||||
int foo(TFunc1 a, TFunc2 b, TFunc3 c);
|
int foo(TFunc1 a, TFunc2 b, TFunc3 c)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue