summaryrefslogtreecommitdiff
path: root/share/swig/2.0.11/tcl/tclinterp.i
diff options
context:
space:
mode:
Diffstat (limited to 'share/swig/2.0.11/tcl/tclinterp.i')
-rw-r--r--share/swig/2.0.11/tcl/tclinterp.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/share/swig/2.0.11/tcl/tclinterp.i b/share/swig/2.0.11/tcl/tclinterp.i
new file mode 100644
index 0000000..3b45b6d
--- /dev/null
+++ b/share/swig/2.0.11/tcl/tclinterp.i
@@ -0,0 +1,17 @@
+/* -----------------------------------------------------------------------------
+ * tclinterp.i
+ *
+ * Tcl_Interp *interp
+ *
+ * Passes the current Tcl_Interp value directly to a C function.
+ * This can be used to work with existing wrapper functions or
+ * if you just need the interp value for some reason. When used,
+ * the 'interp' parameter becomes hidden in the Tcl interface--that
+ * is, you don't specify it explicitly. SWIG fills in its value
+ * automatically.
+ * ----------------------------------------------------------------------------- */
+
+%typemap(in,numinputs=0) Tcl_Interp *interp {
+ $1 = interp;
+}
+