pike.git / src / errors.h

version» Context lines:

pike.git/src/errors.h:1: + #define EMPTY      #ifdef ERR_DECLARE   #define DECLARE_ERROR(NAME, INHERIT, DECL) \   static struct program *PIKE_CONCAT(NAME,_error_program); \   static int PIKE_CONCAT(NAME,_error_offset); \   struct PIKE_CONCAT(NAME,_error_struct) { \    DECL \   };      #define ERR_VAR(TYPE,CTYPE,RUNTYPE,NAME) TYPE NAME ;
pike.git/src/errors.h:50:   #endif      #ifndef ERR_VAR   #define ERR_VAR(TYPE,CTYPE,RUNTYPE,NAME)   #endif      #ifndef ERR_FUNC   #define ERR_FUNC(NAME,FUNC,TYPE,FLAGS)   #endif    - DECLARE_ERROR(generic, /* no inherit */ , + DECLARE_ERROR(generic, EMPTY ,    ERR_VAR(struct pike_string *,string,T_STRING,desc)    ERR_VAR(struct array *,array,T_ARRAY,backtrace)    ERR_FUNC("cast",f_error_cast,tFunc(tString,tMixed),0)    ERR_FUNC("`[]",f_error_index,tFunc(tString,tMixed),0)    ERR_FUNC("describe",f_error_describe,tFunc(tVoid,tString),0)    ERR_FUNC("backtrace",f_error_backtrace,tFunc(tVoid,tArr(tMixed)),0)   )      #define GENERIC_ERROR_THIS ((struct generic_error_struct *)fp->current_storage)