| 5427 | } |
| 5428 | |
| 5429 | void SwigDirector_Trainer::message(std::string const &msg) { |
| 5430 | swig::SwigVar_PyObject obj0; |
| 5431 | obj0 = SWIG_From_std_string(static_cast< std::string >(msg)); |
| 5432 | if (!swig_get_self()) { |
| 5433 | Swig::DirectorException::raise("'self' uninitialized, maybe you forgot to call Trainer.__init__."); |
| 5434 | } |
| 5435 | #if defined(SWIG_PYTHON_DIRECTOR_VTABLE) |
| 5436 | const size_t swig_method_index = 0; |
| 5437 | const char * const swig_method_name = "message"; |
| 5438 | PyObject* method = swig_get_method(swig_method_index, swig_method_name); |
| 5439 | swig::SwigVar_PyObject result = PyObject_CallFunction(method, (char *)"(O)" ,(PyObject *)obj0); |
| 5440 | #else |
| 5441 | swig::SwigVar_PyObject result = PyObject_CallMethod(swig_get_self(), (char *)"message", (char *)"(O)" ,(PyObject *)obj0); |
| 5442 | #endif |
| 5443 | if (!result) { |
| 5444 | PyObject *error = PyErr_Occurred(); |
| 5445 | if (error) { |
| 5446 | Swig::DirectorMethodException::raise("Error detected when calling 'Trainer.message'"); |
| 5447 | } |
| 5448 | } |
| 5449 | } |
| 5450 | |
| 5451 | |
| 5452 | #ifdef __cplusplus |
no test coverage detected