[gegl] opencl: solving the public header problem



commit 7548466e582f27fa714acc47464a1bee463d5011
Author: Victor Oliveira <victormatheus gmail com>
Date:   Mon Jan 14 13:54:39 2013 -0200

    opencl: solving the public header problem

 gegl/opencl/gegl-cl.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl.h b/gegl/opencl/gegl-cl.h
index b70fd27..926f38c 100644
--- a/gegl/opencl/gegl-cl.h
+++ b/gegl/opencl/gegl-cl.h
@@ -23,8 +23,18 @@
 #include "gegl-cl-init.h"
 #include "gegl-cl-color.h"
 
+#ifdef __GEGL_DEBUG_H__
+
 #define CL_ERROR {GEGL_NOTE (GEGL_DEBUG_OPENCL, "Error in %s:%d %s - %s\n", __FILE__, __LINE__, __func__, gegl_cl_errstring(cl_err)); goto error;}
+#define CL_CHECK {if (cl_err != CL_SUCCESS) CL_ERROR;}
+
+#else
 
+/* public header for gegl ops */
+
+#define CL_ERROR {g_warning("Error in %s:%d %s - %s\n", __FILE__, __LINE__, __func__, gegl_cl_errstring(cl_err)); goto error;}
 #define CL_CHECK {if (cl_err != CL_SUCCESS) CL_ERROR;}
 
 #endif
+
+#endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]