diff options
author | Marc Chevrier <marc.chevrier@sap.com> | 2018-01-29 08:46:51 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@sap.com> | 2018-02-14 07:35:04 (GMT) |
commit | d6048bd153979c268a2943b26fd71be7c5f11251 (patch) | |
tree | b45637ba609ca2e429249c7baa084a6839fde99b /Tests/SwigTest/example.cxx | |
parent | d870148537319da2e86237cbd8baf6815975e594 (diff) | |
download | CMake-d6048bd153979c268a2943b26fd71be7c5f11251.zip CMake-d6048bd153979c268a2943b26fd71be7c5f11251.tar.gz CMake-d6048bd153979c268a2943b26fd71be7c5f11251.tar.bz2 |
UseSWIG: Re-work test framework
Diffstat (limited to 'Tests/SwigTest/example.cxx')
-rw-r--r-- | Tests/SwigTest/example.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/Tests/SwigTest/example.cxx b/Tests/SwigTest/example.cxx deleted file mode 100644 index 961d6dd..0000000 --- a/Tests/SwigTest/example.cxx +++ /dev/null @@ -1,33 +0,0 @@ -/* File : example.c */ - -#include "example.h" -#define M_PI 3.14159265358979323846 - -/* Move the shape to a new location */ -void Shape::move(double dx, double dy) -{ - x += dx; - y += dy; -} - -int Shape::nshapes = 0; - -double Circle::area(void) -{ - return M_PI * radius * radius; -} - -double Circle::perimeter(void) -{ - return 2 * M_PI * radius; -} - -double Square::area(void) -{ - return width * width; -} - -double Square::perimeter(void) -{ - return 4 * width; -} |