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

Function PyFindLocalVariable

trinity/Tr2VariableStore_Blue.cpp:172–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static PyObject* PyFindLocalVariable( PyObject* self, PyObject* args )
173{
174 Tr2VariableStore* pThis = BluePythonCast<Tr2VariableStore*>( self );
175 const char* name;
176 if( !PyArg_ParseTuple( args, "s", &name ) )
177 {
178 return NULL;
179 }
180
181 TriVariable* variable = pThis->FindLocalVariable( name );
182 return PyWrapVariable( variable );
183}
184
185static PyObject* PyGetVariable( PyObject* self, PyObject* args )
186{

Callers

nothing calls this directly

Calls 2

PyWrapVariableFunction · 0.85
FindLocalVariableMethod · 0.80

Tested by

no test coverage detected