comparison Framework/Plugins/OrthancCppDatabasePlugin.h @ 129:534759b0cf14

use of macros to report performance warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 Feb 2019 20:12:29 +0100
parents 3424a54ca2ee
children 4cd7e45b671e
comparison
equal deleted inserted replaced
128:39b2f29ddf3c 129:534759b0cf14
1845 { 1845 {
1846 char info[1024]; 1846 char info[1024];
1847 sprintf(info, 1847 sprintf(info,
1848 "Performance warning: The database index plugin was compiled " 1848 "Performance warning: The database index plugin was compiled "
1849 "against an old version of the Orthanc SDK (%d.%d.%d): " 1849 "against an old version of the Orthanc SDK (%d.%d.%d): "
1850 "Consider upgrading to version 1.5.4 of the Orthanc SDK", 1850 "Consider upgrading to version %d.%d.%d of the Orthanc SDK",
1851 ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, 1851 ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER,
1852 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, 1852 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER,
1853 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); 1853 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER,
1854 ORTHANC_OPTIMAL_VERSION_MAJOR,
1855 ORTHANC_OPTIMAL_VERSION_MINOR,
1856 ORTHANC_OPTIMAL_VERSION_REVISION);
1854 1857
1855 OrthancPluginLogWarning(context, info); 1858 OrthancPluginLogWarning(context, info);
1856 } 1859 }
1857 1860
1858 OrthancPluginDatabaseContext* database = 1861 OrthancPluginDatabaseContext* database =