lib/tcl-duktape.c
/*
 * Destroy a Duktape interpreter heap.
 * Return value: nothing.
 * Side effects: destroys a Duktape interpreter heap.
 */
Destroy a Duktape interpreter heap.
Return value: nothing.
Side effects: destroys a Duktape interpreter heap.
Destroy a Duktape interpreter heap . Return value : nothing . Side effects : destroys a Duktape interpreter heap .
static int
Close_Cmd(ClientData cdata, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
    duk_context *ctx;
    if (objc != 2) {
        Tcl_WrongNumArgs(interp, 1, objv, USAGE_CLOSE);
        return TCL_ERROR;
    }
    ctx = parse_id(cdata, interp, objv[1], 1);
    if (ctx == NULL) {
        return TCL_ERROR;
    }
    duk_destroy_heap(ctx);
    return TCL_OK;
}
static int Close_Cmd ( ClientData cdata , Tcl_Interp * interp , int objc , Tcl_Obj * const objv [ ] ) { duk_context * ctx ; if ( objc != 2 ) { Tcl_WrongNumArgs ( interp , 1 , objv , USAGE_CLOSE ) ; return TCL_ERROR ; } ctx = parse_id ( cdata , interp , objv [ 1 ] , 1 ) ; if ( ctx == NULL ) { return TCL_ERROR ; } duk_destroy_heap ( ctx ) ; return TCL_OK ; }
Destroy a Duktape interpreter heap.
Destroy a Duktape interpreter heap .