#include "global.h"#include "svalue.h"#include "pike_macros.h"#include "pike_error.h"#include "interpret.h"#include "stralloc.h"#include "builtin_functions.h"#include "array.h"#include "object.h"#include "main.h"#include "backend.h"#include "operators.h"#include "module_support.h"#include "threads.h"#include "gc.h"#include "errors.h"Defines | |
| #define | NO_PIKE_SHORTHAND |
| #define | ATTRIBUTE(X) |
| #define | do_abort() abort() |
| #define | ERR_DECLARE |
| #define | DWERROR(X) |
| #define | INIT_ERROR(FEL) |
| #define | ERROR_DONE(FOO) |
| #define | ERROR_STRUCT(STRUCT, O) ((struct PIKE_CONCAT(STRUCT,_error_struct) *)((O)->storage + PIKE_CONCAT(STRUCT,_error_offset))) |
| #define | ERROR_COPY(STRUCT, X) ERROR_STRUCT(STRUCT,o)->X=X |
| #define | ERROR_COPY_SVALUE(STRUCT, X) |
| #define | ERROR_COPY_REF(STRUCT, X) add_ref( ERROR_STRUCT(STRUCT,o)->X=X ) |
| #define | ERR_SETUP |
| #define | ERR_CLEANUP |
Functions | |
| PMOD_EXPORT void | pike_gdb_breakpoint (INT32 args) |
| PMOD_EXPORT JMP_BUF * | init_recovery (JMP_BUF *r, size_t stack_pop_levels DEBUG_LINE_ARGS) |
| PMOD_EXPORT | DECLSPEC (noreturn) |
| PMOD_EXPORT void | push_error (const char *description) |
| PMOD_EXPORT void | Pike_vsnprintf (char *str, size_t size, const char *fmt, va_list args) |
| PMOD_EXPORT void | exit_on_error (const void *msg) |
| PMOD_EXPORT void | fatal_on_error (const void *msg) |
| PMOD_EXPORT void | wrong_number_of_args_error (const char *name, int args, int expected) |
| void | init_error (void) |
| void | cleanup_error (void) |
Variables | |
| PMOD_EXPORT const char | msg_fatal_error [] |
| PMOD_EXPORT const char | msg_bad_arg [] |
| PMOD_EXPORT const char | msg_bad_arg_2 [] |
| PMOD_EXPORT const char | msg_out_of_mem [] |
| PMOD_EXPORT const char | msg_div_by_zero [] |
| PMOD_EXPORT struct svalue | throw_value |
| int | throw_severity |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: do { \ if (X) { \ assign_svalue_no_free( & ERROR_STRUCT(STRUCT,o)->X, X); \ } else { \ ERROR_STRUCT(STRUCT, o)->X.type = PIKE_T_INT; \ ERROR_STRUCT(STRUCT, o)->X.subtype = NUMBER_UNDEFINED; \ ERROR_STRUCT(STRUCT, o)->X.u.integer = 0; \ } \ } while (0) |
|
|
Value: PIKE_CONCAT(FOO,_error_va(o,func, \
base_sp, args, \
desc,foo)); \
va_end(foo)
|
|
|
|
|
|
Value: va_list foo; \ struct object *o; \ va_start(foo,desc); \ ASSERT_THREAD_SWAPPED_IN(); \ o=low_clone(PIKE_CONCAT(FEL,_error_program)); \ DWERROR((stderr, "%s(): Throwing a " #FEL " error\n", func)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
Initial value:
"Bad argument %d to %s(). Expected %s.\n"
|
|
|
Initial value:
"Bad argument %d to %s(). %s\n"
|
|
|
Initial value:
"Division by zero.\n"
|
|
|
Initial value:
"%s:%d: Fatal error:\n"
|
|
|
Initial value:
"Out of memory.\n"
|
|
|
|
|
|
Initial value: {
PIKE_T_INT, 0,
}
|
1.3.9.1