| 31 | #include "error_definitions.h" |
| 32 | |
| 33 | static void init_document_error() { |
| 34 | #undef DOCLAYER_ERROR |
| 35 | #define DOCLAYER_ERROR(name, number, comment) \ |
| 36 | Error::errorCodeTable().addCode(number, #name, #comment); \ |
| 37 | enum { Duplicate_Error_Code_##number = 0 }; |
| 38 | #include "error_definitions.h" |
| 39 | } |
| 40 | |
| 41 | #endif |