DocumentationOverviewBuilding ASL Documentation Library Wiki Docs Indices Browse Perforce More InfoRelease NotesWiki Site Search License Success Stories Contributors MediaDownloadPerforce Depots SupportASL SourceForge HomeMailing Lists Discussion Forums Report Bugs Suggest Features Contribute to ASL RSSShort-text newsFull-text news File releases Other Adobe ProjectsAdobe AirAdobe GIL Adobe Labs Adobe Media Gallery Adobe XMP Tamarin project (Mozilla Foundation) Other ResourcesBoostRIAForge SGI STL |
dng_assertions.hGo to the documentation of this file.00001 /*****************************************************************************/ 00002 // Copyright 2006-2007 Adobe Systems Incorporated 00003 // All Rights Reserved. 00004 // 00005 // NOTICE: Adobe permits you to use, modify, and distribute this file in 00006 // accordance with the terms of the Adobe license agreement accompanying it. 00007 /*****************************************************************************/ 00008 00009 /* $Id: //mondo/dng_sdk_1_2/dng_sdk/source/dng_assertions.h#1 $ */ 00010 /* $DateTime: 2008/03/09 14:29:54 $ */ 00011 /* $Change: 431850 $ */ 00012 /* $Author: tknoll $ */ 00013 00018 /*****************************************************************************/ 00019 00020 #ifndef __dng_assertions__ 00021 #define __dng_assertions__ 00022 00023 /*****************************************************************************/ 00024 00025 #include "dng_flags.h" 00026 00027 /*****************************************************************************/ 00028 00029 #ifndef DNG_ASSERT 00030 00033 00034 #if qDNGDebug 00035 00037 void dng_show_message (const char *s); 00038 00039 // Show a formatted error message. 00040 00041 void dng_show_message_f (const char *fmt, ...); 00042 00047 00048 #define DNG_ASSERT(x,y) { if (!(x)) dng_show_message (y); } 00049 00050 #else 00051 00056 00057 #define DNG_ASSERT(x,y) 00058 00059 #endif 00060 #endif 00061 00062 /*****************************************************************************/ 00063 00064 #ifndef DNG_REPORT 00065 #define DNG_REPORT(x) DNG_ASSERT (false, x) 00066 #endif 00067 00068 /*****************************************************************************/ 00069 00070 #endif 00071 00072 /*****************************************************************************/ | |||
