MCPcopy Create free account
hub / github.com/SimHacker/micropolis / SetErrorCode

Method SetErrorCode

micropolis-activity/src/tclx/src/tclplus.cc:99–111  ·  view source on GitHub ↗

*---------------------------------------------------------------------- * * TclInterp_cl::SetErrorCode -- * * Class interface to Tcl_SetErrorCode (see Tcl documentation for * details). Not inlined since varargs and inline don't work on some C++ * compilers. *---------------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

97 * details). Not inlined since varargs and inline don't work on some C++
98 * compilers.
99 *----------------------------------------------------------------------
100 */
101void
102TclInterp_cl::SetErrorCode (char *p,
103 ...)
104{
105 va_list argPtr;
106 char *strPtr;
107
108 va_start (argPtr, p);
109 strPtr = CatVarArgs (argPtr);
110 Tcl_SetErrorCode (interp, p, strPtr, (char *) NULL);
111 ckfree (strPtr)
112 va_end (argPtr);
113}
114

Callers

nothing calls this directly

Calls 1

Tcl_SetErrorCodeFunction · 0.85

Tested by

no test coverage detected