Minor clean up in class example.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13800 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Oliver Buchtala 2012-09-08 01:09:05 +00:00
commit 1862f43cfc
2 changed files with 1 additions and 6 deletions

View file

@ -1,6 +1,6 @@
TOP = ../.. TOP = ../..
SWIG = $(TOP)/../preinst-swig SWIG = $(TOP)/../preinst-swig
CXXSRCS = example.cpp CXXSRCS = example.cxx
JS_SCRIPT = runme.js JS_SCRIPT = runme.js
TARGET = example TARGET = example
INTERFACE = example.i INTERFACE = example.i

View file

@ -21,15 +21,10 @@ c.y = 30;
s.x = -10; s.x = -10;
s.y = 5; s.y = 5;
print("\nHere is their current position:");
print("Circle = (" + c.x + "," + c.y + ")");
print("Square = (" + s.x + "," + s.y + ")");
print("\nHere is their new position:"); print("\nHere is their new position:");
print("Circle = (" + c.x + "," + c.y + ")"); print("Circle = (" + c.x + "," + c.y + ")");
print("Square = (" + s.x + "," + s.y + ")"); print("Square = (" + s.x + "," + s.y + ")");
// ----- Call some methods ----- // ----- Call some methods -----
print("\nHere are some properties of the shapes:"); print("\nHere are some properties of the shapes:");
print("Circle:"); print("Circle:");