Member hooks

TCL_obj_t has the following two members, that allow one to assign a hook that is called after every TCL_obj call into C++ code. This can be used, for example, to record what methods have been called on the C++ model. There is one for each type of method signature called from TCL.

struct TCL_obj_t
    typedef void (*Member_entry_hook)(int argc, CONST84 char **argv);
    Member_entry_hook member_entry_hook;
    typedef void (*Member_entry_thook)(int argc, Tcl_Obj *const argv[]);
    Member_entry_thook member_entry_thook;