Skip to content

Releases: flightaware/cpptcl

Add Tcl_CreateInterpWithStubs and runtime library

12 Dec 21:51
996f40e
Compare
Choose a tag to compare

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

09 Nov 16:42
a20573f
Compare
Choose a tag to compare

The test configuration now uses a CMake subdirectory. This removes redundant CMake configiurations and Makefile configurations.

Fix multiple const ref parameters on objects

31 Oct 18:18
Compare
Choose a tag to compare

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()

23 May 14:46
6dc3cf4
Compare
Choose a tag to compare

Allow usage("command arg arg...") parameter in policy argument to def().

Search /usr/local/bin for brew

07 Mar 20:39
Compare
Choose a tag to compare

Search for tclsh in /usr/local/bin. This helps brew install to work.

Force use of tclsh8.6

07 Mar 20:21
87c140d
Compare
Choose a tag to compare

Use tclsh8.6 for brew install

v2.0.2

20 Feb 20:53
Compare
Choose a tag to compare
  • Create both static and dynamic libs

v2.0.1

19 Feb 19:36
Compare
Choose a tag to compare
  • Build cpptcl as a static library

v2.0.0

16 Feb 17:43
Compare
Choose a tag to compare

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

16 Feb 17:56
Compare
Choose a tag to compare

Import of last known cpptcl release (Dec 2006) from SourceForge https://sourceforge.net/projects/cpptcl/files/cpptcl/