pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:853:    pop_n_elems(args);   }      /*! @endclass    */      /*! @endmodule    */      #ifdef ERROR_DEBUG - #define DWERROR(X) fprintf X + #define DWERROR(...) fprintf(stderr, __VA_ARGS__)   #else /* !ERROR_DEBUG */ - #define DWERROR(X) + #define DWERROR(...)   #endif /* ERROR_DEBUG */      #define INIT_ERROR(FEL)\    va_list foo; \    struct object *o; \    va_start(foo,desc); \    ASSERT_THREAD_SWAPPED_IN(); \ -  DWERROR((stderr, "%s(): Throwing a " #FEL " error\n", func)); \ +  DWERROR("%s(): Throwing a " #FEL " error\n", func); \    o=fast_clone_object(PIKE_CONCAT(FEL,_error_program))      #define ERROR_DONE(FOO) \    PIKE_CONCAT(FOO,_error_va(o,func, \    base_sp, args, \    desc, &foo)); \    va_end(foo)      #define ERROR_STRUCT(STRUCT,O) \    ((struct PIKE_CONCAT(STRUCT,_error_struct) *)((O)->storage + PIKE_CONCAT(STRUCT,_error_offset)))
pike.git/src/error.c:987:   /* coverity[+kill] */   PMOD_EXPORT DECLSPEC(noreturn) void throw_error_object(    struct object *o,    const char *func,    struct svalue *base_sp, int args,    const char *desc, ...) ATTRIBUTE((noreturn))   {    va_list foo;    va_start(foo,desc);    ASSERT_THREAD_SWAPPED_IN(); -  DWERROR((stderr, "%s(): Throwing an error object\n", func)); +  DWERROR("%s(): Throwing an error object\n", func);    ERROR_DONE(generic);   }      /* coverity[+kill] */   PMOD_EXPORT DECLSPEC(noreturn) void generic_error(    const char *func,    struct svalue *base_sp, int args,    const char *desc, ...) ATTRIBUTE((noreturn))   {    INIT_ERROR(generic);
pike.git/src/error.c:1032:    const char *desc, ...) ATTRIBUTE((noreturn))   {    INIT_ERROR(bad_argument);    ERROR_COPY(bad_argument, which_argument);    if (expected_type)    ERROR_STRUCT(bad_argument,o)->expected_type =    make_shared_string(expected_type);    else    ERROR_STRUCT(bad_argument,o)->expected_type = NULL;    ERROR_COPY_SVALUE(bad_argument, got_value); -  DWERROR((stderr, "%s():Bad arg %d (expected %s)\n", -  func, which_argument, expected_type)); +  DWERROR("%s():Bad arg %d (expected %s)\n", +  func, which_argument, expected_type);    ERROR_DONE(generic);   }      /* coverity[+kill] */   PMOD_EXPORT DECLSPEC(noreturn) void math_error(    const char *func,    struct svalue *base_sp, int args,    struct svalue *number,    const char *desc, ...) ATTRIBUTE((noreturn))   {