MCPcopy Create free account
hub / github.com/carbonengine/trinity / PyFindVariable

Function PyFindVariable

trinity/Tr2VariableStore_Blue.cpp:159–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static PyObject* PyFindVariable( PyObject* self, PyObject* args )
160{
161 Tr2VariableStore* pThis = BluePythonCast<Tr2VariableStore*>( self );
162 const char* name;
163 if( !PyArg_ParseTuple( args, "s", &name ) )
164 {
165 return NULL;
166 }
167
168 TriVariable* variable = pThis->FindVariable( name );
169 return PyWrapVariable( variable );
170}
171
172static PyObject* PyFindLocalVariable( PyObject* self, PyObject* args )
173{

Callers

nothing calls this directly

Calls 2

PyWrapVariableFunction · 0.85
FindVariableMethod · 0.80

Tested by

no test coverage detected