dng_assertions.h File Reference

Go to the source code of this file.


Defines

#define DNG_ASSERT(x, y)
#define DNG_REQUIRE(condition, msg)
#define DNG_REPORT(x)   DNG_ASSERT (false, x)

Detailed Description

Conditionally compiled assertion check support.

Define Documentation

#define DNG_ASSERT ( x,
 ) 

Conditionally compiled macro to check an assertion and display a message if it fails and assertions are compiled in via qDNGDebug

Parameters:
x Predicate which must be true.
y String to display if x is not true.

Referenced by dng_negative::AnalogBalance(), dng_color_spec::CameraToPCS(), dng_color_spec::CameraWhite(), dng_pixel_buffer::DirtyPixel(), dng_1d_table::Interpolate(), dng_pixel_buffer::SetConstant_int16(), dng_pixel_buffer::SetConstant_real32(), dng_pixel_buffer::SetConstant_uint16(), dng_pixel_buffer::SetConstant_uint32(), dng_pixel_buffer::SetConstant_uint8(), dng_iptc::Spool(), and dng_color_spec::WhiteXY().

#define DNG_REPORT (  )     DNG_ASSERT (false, x)

Macro to display an informational message

Parameters:
x String to display.

#define DNG_REQUIRE ( condition,
msg   ) 

Value:

do                               \
      {                             \
                                    \
      if (!(condition))                \
         {                          \
                                    \
         ThrowProgramError (msg);         \
                                    \
         }                          \
                                    \
      }                             \
   while (0)
Conditionally compiled macro to check an assertion, display a message, and throw an exception if it fails and assertions are compiled in via qDNGDebug
Parameters:
condition Predicate which must be true.
msg String to display if condition is not true.

Copyright © 2006-2009 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google