git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5078 626c5289-ae23-0410-ae9c-e8d60b6d4f22
11 lines
224 B
C
11 lines
224 B
C
#include <stdio.h>
|
|
|
|
int Circle (int x, int y, int radius) {
|
|
/* Draw Circle */
|
|
printf("Drawing the circle...\n");
|
|
/* Return -1 to test contract post assertion */
|
|
if (radius == 2)
|
|
return -1;
|
|
else
|
|
return 1;
|
|
}
|