Fix a bug caused by NDEBUG macro; it is now removed.

Revise some descriptions of the enums.
This commit is contained in:
peng xiao
2013-06-14 16:37:00 +08:00
parent c8398c9fdc
commit e6b18fc492
2 changed files with 14 additions and 9 deletions

View File

@@ -508,7 +508,7 @@ namespace cv
{
impl->update_disk_cache = (mode & CACHE_UPDATE) == CACHE_UPDATE;
impl->enable_disk_cache =
#if !defined(NDEBUG) || defined(_DEBUG)
#ifdef _DEBUG
(mode & CACHE_DEBUG) == CACHE_DEBUG;
#else
(mode & CACHE_RELEASE) == CACHE_RELEASE;