OpenEXR/IexMacros.h File Reference

#include <sstream>

Go to the source code of this file.

Defines

#define THROW(type, text)
#define APPEND_EXC(exc, text)
#define REPLACE_EXC(exc, text)
#define THROW_ERRNO(text)
#define ASSERT(assertion, type, text)


Define Documentation

#define APPEND_EXC ( exc,
text   ) 

Value:

do                          \
    {                           \
        std::stringstream s;    \
        s << text;              \
        exc.append (s);         \
    }                           \
    while (0)

Definition at line 91 of file IexMacros.h.

#define ASSERT ( assertion,
type,
text   ) 

Value:

do                                  \
    {                                   \
        if ((assertion) == false)       \
            THROW (type, text);         \
    }                                   \
    while (0)

Definition at line 139 of file IexMacros.h.

#define REPLACE_EXC ( exc,
text   ) 

Value:

do                          \
    {                           \
        std::stringstream s;    \
        s << text;              \
        exc.assign (s);         \
    }                           \
    while (0)

Definition at line 100 of file IexMacros.h.

#define THROW ( type,
text   ) 

Value:

do                          \
    {                           \
        std::stringstream s;    \
        s << text;              \
        throw type (s);         \
    }                           \
    while (0)

Definition at line 58 of file IexMacros.h.

#define THROW_ERRNO ( text   ) 

Value:

do                                  \
    {                                   \
        std::stringstream s;            \
        s << text;                      \
        ::Iex::throwErrnoExc (s.str()); \
    }                                   \
    while (0)

Definition at line 120 of file IexMacros.h.


Generated on Thu Jan 31 00:29:10 2013 for HDK by  doxygen 1.5.9