| 275 | } |
| 276 | |
| 277 | PyObject *py_ue_set_name(ue_PyUObject *self, PyObject * args) { |
| 278 | |
| 279 | ue_py_check(self); |
| 280 | |
| 281 | char *name; |
| 282 | if (!PyArg_ParseTuple(args, "s:set_name", &name)) { |
| 283 | return NULL; |
| 284 | } |
| 285 | |
| 286 | if (!self->ue_object->Rename(UTF8_TO_TCHAR(name), self->ue_object->GetOutermost(), REN_Test)) { |
| 287 | return PyErr_Format(PyExc_Exception, "cannot set name %s", name); |
| 288 | } |
| 289 | |
| 290 | if (self->ue_object->Rename(UTF8_TO_TCHAR(name))) { |
| 291 | Py_INCREF(Py_True); |
| 292 | return Py_True; |
| 293 | } |
| 294 | |
| 295 | Py_INCREF(Py_False); |
| 296 | return Py_False; |
| 297 | } |
| 298 | |
| 299 | PyObject *py_ue_get_name(ue_PyUObject *self, PyObject * args) { |
| 300 |
nothing calls this directly
no outgoing calls
no test coverage detected