pike.git / src / errors.h

version» Context lines:

pike.git/src/errors.h:49:    struct PIKE_CONCAT(NAME,_error_struct) foo; \    DECLARE_PURE_ERROR(NAME, SCNAME, \    INHERIT \    current_offset = \    PIKE_CONCAT(NAME,_error_offset) = \    ADD_STORAGE(struct PIKE_CONCAT(NAME,_error_struct)); \    DECL) \    } while(0);      #define ERR_VAR(TYPE,CTYPE,RUNTYPE,NAME2) \ -  MAP_VARIABLE(#NAME2, CTYPE, 0, \ -  current_offset + (((char *)&(foo.NAME2))-((char *)&foo)), RUNTYPE); +  PIKE_MAP_VARIABLE(#NAME2, \ +  current_offset + (((char *)&(foo.NAME2))-((char *)&foo)),\ +  CTYPE, RUNTYPE, 0); +    #define ERR_CONST(TYPE, NAME, VALUE) \    PIKE_CONCAT3 (add_, TYPE, _constant) (NAME, VALUE, 0);      /* Reference foo just to avoid warning. */   /* #define EMPTY (void) &foo; */      #define ERR_INHERIT(NAME) \    low_inherit(PIKE_CONCAT(NAME,_error_program),0,0,0,0,0);      #define ERR_FUNC(NAME,FUNC,TYPE,FLAGS) \
pike.git/src/errors.h:105:   #define ERR_FUNC(NAME,FUNC,TYPE,FLAGS)   #endif      #ifndef ERR_FUNC_SAVE_ID   #define ERR_FUNC_SAVE_ID(VAR, NAME, FUNC, TYPE, FLAGS)   #endif      DECLARE_ERROR(generic, Generic, EMPTY ,    ERR_VAR(struct pike_string *,tStr,PIKE_T_STRING,error_message)    ERR_VAR(struct array *,tArray,PIKE_T_ARRAY,error_backtrace) -  ERR_FUNC("cast",f_error_cast,tFunc(tString,tArray),ID_PROTECTED) +  ERR_FUNC("cast",f_error_cast,tFunc(tString,tArray),ID_PRIVATE)    ERR_FUNC("`[]",f_error_index,tFunc(tInt01,tMixed),ID_PROTECTED)    ERR_FUNC("_sizeof",f_error__sizeof,tFunc(tNone,tInt2),ID_PROTECTED)    ERR_FUNC("_indices",f_error__indices,tFunc(tNone,tArr(tInt01)),ID_PROTECTED)    ERR_FUNC("_values",f_error__values,tFunc(tNone,tArr(tOr(tStr,tArr(tMixed)))),ID_PROTECTED)    ERR_FUNC("describe",f_error_describe,tFunc(tVoid,tString),0)    ERR_FUNC_SAVE_ID (generic_err_message_fun, "message", f_error_message,    tFunc(tVoid,tString), 0)    ERR_FUNC_SAVE_ID (generic_err_backtrace_fun, "backtrace", f_error_backtrace,    tFunc(tVoid,tArr(tMixed)),0)    ERR_FUNC("_sprintf", f_error__sprintf,