added safe call support in cu files

This commit is contained in:
Anatoly Baksheev
2010-07-15 14:42:24 +00:00
parent 2c84a66ec7
commit 55b1e9cbc7
4 changed files with 19 additions and 19 deletions

View File

@@ -51,7 +51,9 @@ namespace cv
{
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned int uint;
extern "C" void error( const char *error_string, const char *file, const int line, const char *func = "");
namespace impl
{
@@ -62,4 +64,8 @@ namespace cv
}
}
#ifdef __CUDACC__
#define cudaSafeCall(err) { if( cudaSuccess != err) cv::gpu::error(cudaGetErrorString(err), __FILE__, __LINE__); }
#endif
#endif /* __OPENCV_CUDA_SHARED_HPP__ */