pike.git / src / errors.h

version» Context lines:

pike.git/src/errors.h:10: Inside #if defined(ERR_EXT_DECLARE)
     #ifdef ERR_EXT_DECLARE   #define DECLARE_ERROR(NAME, INHERIT, DECL) \   PMOD_EXPORT extern struct program *PIKE_CONCAT(NAME,_error_program); \   extern ptrdiff_t PIKE_CONCAT(NAME,_error_offset); \   struct PIKE_CONCAT(NAME,_error_struct) { \    DECL \   };      #define ERR_VAR(TYPE,CTYPE,RUNTYPE,NAME) TYPE NAME ; +  + /* Some compilers (eg cl) don't like empty structs... */ + #undef EMPTY + #define EMPTY ERR_VAR(INT_TYPE, int, PIKE_T_INT, ignored__) +    #endif /* ERR_EXT_DECLARE */      #ifdef ERR_SETUP   #define DECLARE_ERROR(NAME, INHERIT, DECL) do{ \    ptrdiff_t current_offset=0; \    struct PIKE_CONCAT(NAME,_error_struct) foo; \    start_new_program(); \    INHERIT \    current_offset = PIKE_CONCAT(NAME,_error_offset) = \    ADD_STORAGE(struct PIKE_CONCAT(NAME,_error_struct));\