![]() |
![]()
| ![]() |
![]()
NAMEcritcl::iassoc - CriTcl - Code Gen - Tcl Interp Associations SYNOPSISpackage require Tcl 8.6 package require critcl ?3.2? package require critcl::iassoc ?1.2? ::critcl::iassoc::def name arguments struct constructor destructor DESCRIPTIONBe welcome to the C Runtime In Tcl (short: CriTcl), a system for embedding and using C code from within Tcl [http://core.tcl-lang.org/tcl] scripts. This document is the reference manpage for the critcl::iassoc package. This package provides convenience commands for advanced functionality built on top of the critcl core. With it a user wishing to associate some data with a Tcl interpreter via Tcl's Tcl_(Get|Set)AssocData() APIs can now concentrate on the data itself, while all the necessary boilerplate around it is managed by this package. Its intended audience are mainly developers wishing to write Tcl packages with embedded C code. This package resides in the Core Package Layer of CriTcl. +----------------+ |Applications | | critcl | | critcl::app | +----------------+ *================* |Core Packages | | critcl | | critcl::util | *================* +----------------+ |Support Packages| | stubs::* | | md5, platform | | ... | +----------------+ API
EXAMPLEThe example shown below is the specification of a simple interpreter-associated counter. The full example, with meta data and other incidentals, can be found in the directory "examples/queue" of the critcl source distribution/repository. package require Tcl 8.6 package require critcl 3.2 critcl::buildrequirement { AUTHORSAndreas Kupries BUGS, IDEAS, FEEDBACKThis document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such at https://github.com/andreas-kupries/critcl. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDSC code, Embedded C Code, Tcl Interp Association, code generator, compile & run, compiler, dynamic code generation, dynamic compilation, generate package, linker, on demand compilation, on-the-fly compilation, singleton CATEGORYGlueing/Embedded C code COPYRIGHTCopyright (c) 2011-2024 Andreas Kupries
|