diff src/dmimage.c @ 1046:7e54b2d08ce7

Add special debug error message function/macro that can be disabled and compiled out.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 01 Mar 2015 18:03:08 +0200
parents c71fcf44b678
children 509e6ed3a24e
line wrap: on
line diff
--- a/src/dmimage.c	Sun Mar 01 17:47:50 2015 +0200
+++ b/src/dmimage.c	Sun Mar 01 18:03:08 2015 +0200
@@ -7,8 +7,9 @@
 #include "dmimage.h"
 #include "dmzlib.h"
 
-
+#ifndef DM_DEBUG
 #define STBI_NO_FAILURE_STRINGS 1
+#endif
 #define STBI_FAILURE_USERMSG 1
 
 #define STB_IMAGE_IMPLEMENTATION 1
@@ -172,7 +173,7 @@
 
     if (result == NULL)
     {
-        dmError(DMERR_DATA_ERROR,
+        dmErrorDBG(DMERR_DATA_ERROR,
             "Format conversion failed for image resource %p '%s' [%d, %d, %d].\n",
             file, file->filename, width, height, comp);
     }