Changeset 4826 for nanovis/branches


Ignore:
Timestamp:
Dec 9, 2014, 5:01:44 PM (5 years ago)
Author:
ldelgass
Message:

use a safe interpreter for nanovis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/branches/1.1/Command.cpp

    r4825 r4826  
    21342134initTcl()
    21352135{
    2136     /*
    2137      * Ideally the connection is authenticated by nanoscale.  I still like the
    2138      * idea of creating a non-safe master interpreter with a safe slave
    2139      * interpreter.  Alias all the nanovis commands in the slave. That way we
    2140      * can still run Tcl code within nanovis.  The eventual goal is to create
    2141      * a test harness through the interpreter for nanovis.
    2142      */
    2143     Tcl_Interp *interp;
    2144     interp = Tcl_CreateInterp();
    2145     /*
     2136    Tcl_Interp *interp = Tcl_CreateInterp();
    21462137    Tcl_MakeSafe(interp);
    2147     */
     2138
    21482139    Tcl_CreateObjCommand(interp, "axis",        AxisCmd,        NULL, NULL);
    21492140    Tcl_CreateObjCommand(interp, "camera",      CameraCmd,      NULL, NULL);
Note: See TracChangeset for help on using the changeset viewer.