Releases: flightaware/cpptcl
Add Tcl_CreateInterpWithStubs and runtime library
Add a new C function Tcl_CreateInterpWithStubs to perform a common: Tcl_CreateInterp, Tcl_Init, Tcl_StubsInit, Tcl_PkgRequire.
This saves implementers several lines of code and avoids problems with USE_TCL_STUBS being set at the wrong time. In general, cpptcl users should stick to always setting the preprocessor variable USE_TCL_STUBS. Note that USE_TCL_STUBS will be set by cpptcl.h unless CPPTCL_NO_TCL_STUBS is set. The TCL TEA system always sets USE_TCL_STUBS; it is a reasonable default.
The simplest means to create a TCL interpreter is to use
#include <cpptcl/cpptcl.h>
Tcl_Interp * interp = Tcl_CreateInterpWithStubs("8.6", 0); // C style pointer
Tcl::interpreter i(interp, true); // wrapped by cpptcl class
and to link in the static library cpptcl_runtime.
Cleanup CMake testing
The test configuration now uses a CMake subdirectory. This removes redundant CMake configiurations and Makefile configurations.
Fix multiple const ref parameters on objects
If a class method had more than one const parameter by reference, then the code generation had no matching template. Fixed by filling in the template code expansions for N const reference parameters.
Add "usage()" parameter to def()
Allow usage("command arg arg...") parameter in policy argument to def().
Search /usr/local/bin for brew
Search for tclsh in /usr/local/bin. This helps brew install to work.
Force use of tclsh8.6
Use tclsh8.6 for brew install
v2.0.2
v2.0.1
v2.0.0
First release of this FlightAware fork of cpptcl.
- Updated to use STL from C++17, rather than Boost.
- Update to use CMake for build system
- Support for modern versions of clang and g++ compilers
- New accessor methods:
as<T>
,operator[]
,asBool
, etc - Add default interpreter to many methods, simplifying calls where the interpreter can be implied
- Documentation, tests, and examples updated
v1.1.3
Import of last known cpptcl release (Dec 2006) from SourceForge https://sourceforge.net/projects/cpptcl/files/cpptcl/