MCPcopy Create free account
hub / github.com/Colvars/colvars / python_tcl_eval

Function python_tcl_eval

namd/src/ScriptTcl.C:222–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222static PyObject* python_tcl_eval(PyObject *self, PyObject *args) {
223 Tcl_Interp *interp = static_interp;
224 const char *command;
225 if ( ! PyArg_ParseTuple(args, "s", &command) ) return 0;
226 if ( TCL_OK != Tcl_EvalEx(interp,command,-1,TCL_EVAL_DIRECT) ) {
227 PyErr_SetString(PyExc_RuntimeError, Tcl_GetStringResult(interp));
228 return 0;
229 }
230 return tcl_python_convert(Tcl_GetObjResult(interp));
231}
232
233static PyObject* python_tcl_write(PyObject *self, PyObject *args) {
234 const char *string;

Callers

nothing calls this directly

Calls 1

tcl_python_convertFunction · 0.85

Tested by

no test coverage detected