• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • graphics API Reference
  • KDE Home
  • Contact Us
 

digikam

  • extragear
  • graphics
  • digikam
  • core
  • libs
  • dngwriter
  • extra
  • dng_sdk
dng_assertions.h
Go to the documentation of this file.
1 /*****************************************************************************/
2 // Copyright 2006-2007 Adobe Systems Incorporated
3 // All Rights Reserved.
4 //
5 // NOTICE: Adobe permits you to use, modify, and distribute this file in
6 // accordance with the terms of the Adobe license agreement accompanying it.
7 /*****************************************************************************/
8 
9 /* $Id: //mondo/dng_sdk_1_3/dng_sdk/source/dng_assertions.h#1 $ */
10 /* $DateTime: 2009/06/22 05:04:49 $ */
11 /* $Change: 578634 $ */
12 /* $Author: tknoll $ */
13 
18 /*****************************************************************************/
19 
20 #ifndef __dng_assertions__
21 #define __dng_assertions__
22 
23 /*****************************************************************************/
24 
25 #include "dng_exceptions.h"
26 #include "dng_flags.h"
27 
28 /*****************************************************************************/
29 
30 #if qDNGDebug
31 
33 void dng_show_message (const char *s);
34 
35 // Show a formatted error message.
36 
37 void dng_show_message_f (const char *fmt, ...);
38 
39 #endif
40 
41 /*****************************************************************************/
42 
43 #ifndef DNG_ASSERT
44 
45 #if qDNGDebug
46 
51 
52 #define DNG_ASSERT(x,y) { if (!(x)) dng_show_message (y); }
53 
54 #else
55 
60 
61 #define DNG_ASSERT(x,y)
62 
63 #endif
64 #endif
65 
66 /*****************************************************************************/
67 
68 #ifndef DNG_REQUIRE
69 
70 #if qDNGDebug
71 
76 
77 #define DNG_REQUIRE(condition,msg) \
78  do \
79  { \
80  \
81  if (!(condition)) \
82  { \
83  \
84  dng_show_message (msg); \
85  \
86  ThrowProgramError (msg); \
87  \
88  } \
89  \
90  } \
91  while (0)
92 
93 #else
94 
99 
100 #define DNG_REQUIRE(condition,msg) \
101  do \
102  { \
103  \
104  if (!(condition)) \
105  { \
106  \
107  ThrowProgramError (msg); \
108  \
109  } \
110  \
111  } \
112  while (0)
113 
114 #endif
115 #endif
116 
117 /*****************************************************************************/
118 
119 #ifndef DNG_REPORT
120 
123 
124 #define DNG_REPORT(x) DNG_ASSERT (false, x)
125 #endif
126 
127 /*****************************************************************************/
128 
129 #endif
130 
131 /*****************************************************************************/
dng_flags.h
Conditional compilation flags for DNG SDK.
dng_exceptions.h
C++ exception support for DNG SDK.
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 12 2019 03:09:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages
-->

graphics API Reference

Skip menu "graphics API Reference"
  • digikam
  • KDiagram
  •     KChart
  •     KGantt
  • KPhotoAlbum
  •   AndroidRemoteControl
  • Krita
  •   libs
  •     KritaBasicFlakes
  •     brush
  •     KritaUndo2
  •     KritaFlake
  •     image
  •     KritaPlugin
  •     Krita
  •     KritaOdf
  •     KritaPigment
  •     KritaStore
  •     ui
  •     KritaWidgets
  •     KritaWidgetUtils
  •   plugins
  •     Assitants
  •     Extensions
  •     Filters
  •         KritaText
  •         KritaTextLayout
  •     Generators
  •     Formats
  •             src
  •     PaintOps
  •       libpaintop
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal