aboutsummaryrefslogtreecommitdiff
path: root/Examples/tcl/constants/example.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/tcl/constants/example.i')
-rw-r--r--Examples/tcl/constants/example.i7
1 files changed, 4 insertions, 3 deletions
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;