It is impossible to have two functions with the same name inside the same program, but it is possible to provide a #define to allow the user code to use the original function name for the wrapper function, so do it for convenience. Remove the old changes adding explicit "_wrap_" prefix to the examples and the tests and remove the few more now passing tests from the list of failing tests.
15 lines
278 B
C
15 lines
278 B
C
#include <stdio.h>
|
|
|
|
#include "example_wrap.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
int a = 42;
|
|
int b = 105;
|
|
int g = gcd(a, b);
|
|
printf("The gcd of %d and %d is %d\n", a, b, g);
|
|
printf("Foo = %f\n", Foo);
|
|
Foo = 3.1415926;
|
|
printf("Foo = %f\n", Foo);
|
|
SWIG_exit(0);
|
|
}
|
|
|