diff options
Diffstat (limited to 'Examples/tcl/constants')
-rw-r--r-- | Examples/tcl/constants/.cvsignore | 9 | ||||
-rw-r--r-- | Examples/tcl/constants/Makefile | 2 | ||||
-rw-r--r-- | Examples/tcl/constants/example.i | 7 |
3 files changed, 14 insertions, 4 deletions
diff --git a/Examples/tcl/constants/.cvsignore b/Examples/tcl/constants/.cvsignore new file mode 100644 index 000000000..5f25c5b9a --- /dev/null +++ b/Examples/tcl/constants/.cvsignore @@ -0,0 +1,9 @@ +*_wrap.c +*_wrap.cxx +example.dll +example.dsw +example.ncb +example.opt +example.plg +Release +Debug diff --git a/Examples/tcl/constants/Makefile b/Examples/tcl/constants/Makefile index bb509b03f..ef0486c0b 100644 --- a/Examples/tcl/constants/Makefile +++ b/Examples/tcl/constants/Makefile @@ -14,6 +14,6 @@ static:: TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' tclsh clean:: - rm -f *_wrap* *.o my_tclsh *~ .~* core *.so *.sl + $(MAKE) -f $(TOP)/Makefile tcl_clean check: all diff --git a/Examples/tcl/constants/example.i b/Examples/tcl/constants/example.i index 29a1a7f11..4f7b1a4d7 100644 --- a/Examples/tcl/constants/example.i +++ b/Examples/tcl/constants/example.i @@ -19,8 +19,9 @@ /* Neither should this (BAR isn't defined) */ #define FOO (ICONST + BAR) -/* The following statements also produce constants */ -const int iconst = 37; -const double fconst = 3.14; +/* The following directives also produce constants */ + +%constant int iconst = 37; +%constant double fconst = 3.14; |