Mercurial > hg > orthanc-python
comparison Sources/Autogenerated/sdk_OrthancPluginErrorCode.impl.h @ 171:c8de83fe7faa
removed deprecation warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 Jun 2024 15:52:51 +0200 |
parents | 6fada29b6759 |
children | 55473de7694f |
comparison
equal
deleted
inserted
replaced
170:b49eeb36cd0d | 171:c8de83fe7faa |
---|---|
45 | 45 |
46 sdk_OrthancPluginErrorCode_Type.tp_dict = PyDict_New(); | 46 sdk_OrthancPluginErrorCode_Type.tp_dict = PyDict_New(); |
47 | 47 |
48 if (PyType_Ready(&sdk_OrthancPluginErrorCode_Type) < 0) | 48 if (PyType_Ready(&sdk_OrthancPluginErrorCode_Type) < 0) |
49 { | 49 { |
50 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginErrorCode"); | 50 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python enumeration: OrthancPluginErrorCode"); |
51 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); | 51 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); |
52 } | 52 } |
53 | 53 |
54 /** | 54 /** |
55 * Declare constants here (static members = class attributes) | 55 * Declare constants here (static members = class attributes) |
709 | 709 |
710 | 710 |
711 Py_INCREF(&sdk_OrthancPluginErrorCode_Type); | 711 Py_INCREF(&sdk_OrthancPluginErrorCode_Type); |
712 if (PyModule_AddObject(module, "ErrorCode", (PyObject *)&sdk_OrthancPluginErrorCode_Type) < 0) | 712 if (PyModule_AddObject(module, "ErrorCode", (PyObject *)&sdk_OrthancPluginErrorCode_Type) < 0) |
713 { | 713 { |
714 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginErrorCode"); | 714 ORTHANC_PLUGINS_LOG_ERROR("Cannot register Python enumeration: OrthancPluginErrorCode"); |
715 Py_DECREF(&sdk_OrthancPluginErrorCode_Type); | 715 Py_DECREF(&sdk_OrthancPluginErrorCode_Type); |
716 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); | 716 ORTHANC_PLUGINS_THROW_EXCEPTION(InternalError); |
717 } | 717 } |
718 } | 718 } |