tcl_platform(byteOrder) = littleEndian
+tcl_platform(engine) = Jim
tcl_platform(os) = Darwin
tcl_platform(platform) = unix
tcl_platform(pointerSize) = 8
diff --git a/jim.c b/jim.c
index 0c6825f..5be02c5 100644
--- a/jim.c
+++ b/jim.c
@@ -5479,6 +5479,7 @@ Jim_Interp *Jim_CreateInterp(void)
Jim_SetVariableStrWithStr(i, JIM_LIBPATH, TCL_LIBRARY);
Jim_SetVariableStrWithStr(i, JIM_INTERACTIVE, "0");
+ Jim_SetVariableStrWithStr(i, "tcl_platform(engine)", "Jim");
Jim_SetVariableStrWithStr(i, "tcl_platform(os)", TCL_PLATFORM_OS);
Jim_SetVariableStrWithStr(i, "tcl_platform(platform)", TCL_PLATFORM_PLATFORM);
Jim_SetVariableStrWithStr(i, "tcl_platform(pathSeparator)", TCL_PLATFORM_PATH_SEPARATOR);
diff --git a/jim_tcl.txt b/jim_tcl.txt
index 899e230..3a50b0f 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -4984,6 +4984,7 @@ The following global variables are set by jimsh.
example of the contents of this array.
tcl_platform(byteOrder) = littleEndian
+ tcl_platform(engine) = Jim
tcl_platform(os) = Darwin
tcl_platform(platform) = unix
tcl_platform(pointerSize) = 8
diff --git a/tests/jim.test b/tests/jim.test
index b48522d..9c12ac7 100644
--- a/tests/jim.test
+++ b/tests/jim.test
@@ -3501,5 +3501,8 @@ test regression-1.2 {open/close from non-global namespace} {
expr {$f in [info channels]}
} {0}
+test regression-1.3 {value of tcl_platform(engine)} {
+ set ::tcl_platform(engine)
+} {Jim}
testreport
--
cgit v1.1