Merge pull request #325 from lukeiwanski/feature/no_exceptions
authorAnthony Barbier <anthony.barbier@arm.com>
Wed, 3 Jan 2018 16:21:54 +0000 (16:21 +0000)
committerAnthony Barbier <anthony.barbier@arm.com>
Wed, 24 Jan 2018 10:01:42 +0000 (10:01 +0000)
ARM_COMPUTE_NO_EXCEPTIONS macro guard

arm_compute/core/CL/OpenCL.h

index 8a2d30b..60f0330 100644 (file)
@@ -28,7 +28,9 @@
 #include <utility>
 
 /* Configure the Khronos C++ wrapper to target OpenCL 1.2: */
+#ifndef ARM_COMPUTE_NO_EXCEPTIONS
 #define CL_HPP_ENABLE_EXCEPTIONS
+#endif // ARM_COMPUTE_NO_EXCEPTIONS
 #define CL_HPP_CL_1_2_DEFAULT_BUILD
 #define CL_HPP_TARGET_OPENCL_VERSION 110
 #define CL_HPP_MINIMUM_OPENCL_VERSION 110