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

Function PyGetVariable

trinity/Tr2VariableStore_Blue.cpp:185–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185static PyObject* PyGetVariable( PyObject* self, PyObject* args )
186{
187 Tr2VariableStore* pThis = BluePythonCast<Tr2VariableStore*>( self );
188 const char* name;
189 if( !PyArg_ParseTuple( args, "s", &name ) )
190 {
191 return NULL;
192 }
193
194 TriVariable* variable = pThis->GetVariable( name );
195 return PyWrapVariable( variable );
196}
197
198static PyObject* PyGetLocalVariable( PyObject* self, PyObject* args )
199{

Callers

nothing calls this directly

Calls 2

PyWrapVariableFunction · 0.85
GetVariableMethod · 0.45

Tested by

no test coverage detected