An Overview of the Tcl C Library
Application Initialization
The Tcl_Main and Tcl_AppInit procedures are illustrated by Example 44-13 on page 630. They provide a standard framework for creating main programs that embed a Tcl interpreter.
The Tcl_InitStubs procedure must be called during initialization by an extension that has been linked against the Tcl stub library, which is described on page 647. Tcl_InitStubs is illustrated in Example 44-1 on page 610.
Creating and Deleting Interpreters
A Tcl interpreter is created and deleted with the Tcl_CreateInterp and Tcl_DeleteInterp procedures. You can find out if a interpreter is in the process of being deleted with the Tcl_InterpDeleted call. You can register a callback to occur when the interpreter ...
Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.