PoDoFo
0.9.1
|
#include "podofoapi.h"
#include <string>
#include <queue>
#include <cstdarg>
Classes | |
class | PoDoFo::PdfError |
Namespaces | |
PoDoFo | |
Constant Groups | |
PoDoFo | |
Macros | |
#define | PODOFO_RAISE_ERROR(x) throw ::PoDoFo::PdfError( x, __FILE__, __LINE__ ); |
#define | PODOFO_RAISE_ERROR_INFO(x, y) throw ::PoDoFo::PdfError( x, __FILE__, __LINE__, y ); |
#define | PODOFO_RAISE_LOGIC_IF(x, y) { if (x) throw ::PoDoFo::PdfError( ePdfError_InternalLogic, __FILE__, __LINE__, y ); }; |
Error information and logging is implemented in this file.
#define PODOFO_RAISE_ERROR | ( | x) | throw ::PoDoFo::PdfError( x, __FILE__, __LINE__ ); |
Set the value of the variable eCode (which has to exist in the current function) to x and return the eCode.
#define PODOFO_RAISE_ERROR_INFO | ( | x, | |
y | |||
) | throw ::PoDoFo::PdfError( x, __FILE__, __LINE__, y ); |
Set the value of the variable eCode (which has to exist in the current function) to x and return the eCode. Additionally additional information on the error y is set. y has to be an c-string.
#define PODOFO_RAISE_LOGIC_IF | ( | x, | |
y | |||
) | { if (x) throw ::PoDoFo::PdfError( ePdfError_InternalLogic, __FILE__, __LINE__, y ); }; |
Evaluate `x' as a binary predicate and if it is true, raise a logic error with the info string `y' .
This macro will be undefined when NDEBUG is set, so it's compiled out for release builds. Use it for expensive or extremely frequent sanity checking.
We define it then UNDEF it to help out doxygen.