Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | DUK_ERROR(thr, err, msg) duk_err_handle_error((thr), (err)) |
#define | DUK_ERROR_RAW(thr, file, line, err, msg) duk_err_handle_error((thr), (err)) |
#define | DUK_ERROR_FMT1(thr, err, fmt, arg1) DUK_ERROR((thr),(err),(fmt)) |
#define | DUK_ERROR_RAW_FMT1(thr, file, line, err, fmt, arg1) DUK_ERROR_RAW((thr),(file),(line),(err),(fmt)) |
#define | DUK_ERROR_FMT2(thr, err, fmt, arg1, arg2) DUK_ERROR((thr),(err),(fmt)) |
#define | DUK_ERROR_RAW_FMT2(thr, file, line, err, fmt, arg1, arg2) DUK_ERROR_RAW((thr),(file),(line),(err),(fmt)) |
#define | DUK_ERROR_FMT3(thr, err, fmt, arg1, arg2, arg3) DUK_ERROR((thr),(err),(fmt)) |
#define | DUK_ERROR_RAW_FMT3(thr, file, line, err, fmt, arg1, arg2, arg3) DUK_ERROR_RAW((thr),(file),(line),(err),(fmt)) |
#define | DUK_ERROR_FMT4(thr, err, fmt, arg1, arg2, arg3, arg4) DUK_ERROR((thr),(err),(fmt)) |
#define | DUK_ERROR_RAW_FMT4(thr, file, line, err, fmt, arg1, arg2, arg3, arg4) DUK_ERROR_RAW((thr),(file),(line),(err),(fmt)) |
#define | DUK_PANIC(code, msg) duk_default_panic_handler((code),(msg)) |
#define | DUK_ASSERT(x) do { /* assertion omitted */ } while (0) |
#define | DUK_ASSERT_EXPR(x) ((void) 0) |
#define | DUK_ASSERT_DISABLE(x) do { /* assertion disabled */ } while (0) |
#define | DUK_ASSERT_REFCOUNT_NONZERO_HEAPHDR(h) /* no refcount check */ |
#define | DUK_ASSERT_REFCOUNT_NONZERO_TVAL(tv) /* no refcount check */ |
#define | DUK_ASSERT_TOP(ctx, n) DUK_ASSERT((duk_idx_t) duk_get_top((ctx)) == (duk_idx_t) (n)) |
#define | DUK_ASSERT_DOUBLE_IS_NORMALIZED(dval) /* nop */ |
#define | DUK_VALSTACK_ASSERT_EXTRA |
#define | DUK_ASSERT_VALSTACK_SPACE(thr, n) /* no valstack space check */ |
#define | DUK_ERROR_REQUIRE_TYPE_INDEX(thr, index, expectname, lowmemstr) |
#define | DUK_ERROR_UNIMPLEMENTED(thr, msg) |
#define | DUK_ERROR_UNIMPLEMENTED_DEFMSG(thr) |
#define | DUK_ERROR_UNSUPPORTED(thr, msg) |
#define | DUK_ERROR_UNSUPPORTED_DEFMSG(thr) |
#define | DUK_ERROR_INTERNAL(thr, msg) |
#define | DUK_ERROR_INTERNAL_DEFMSG(thr) |
#define | DUK_ERROR_ALLOC(thr, msg) |
#define | DUK_ERROR_ALLOC_DEFMSG(thr) |
#define | DUK_ERROR_API_INDEX(thr, index) |
#define | DUK_ERROR_API(thr, msg) |
#define | DUK_ERROR_RANGE(thr, msg) |
#define | DUK_ERROR_SYNTAX(thr, msg) |
#define | DUK_ERROR_TYPE(thr, msg) |
Functions | |
DUK_NORETURN (DUK_INTERNAL_DECL void duk_err_handle_error(duk_hthread *thr, duk_errcode_t code)) | |
DUK_NORETURN (DUK_INTERNAL_DECL void duk_error_throw_from_negative_rc(duk_hthread *thr, duk_ret_t rc)) | |
DUK_NORETURN (DUK_INTERNAL_DECL void duk_err_range(duk_hthread *thr)) | |
DUK_NORETURN (DUK_INTERNAL_DECL void duk_default_fatal_handler(duk_context *ctx, duk_errcode_t code, const char *msg)) | |
DUK_NORETURN (DUK_INTERNAL_DECL void duk_default_panic_handler(duk_errcode_t code, const char *msg)) | |
DUK_INTERNAL_DECL void | duk_err_setup_heap_ljstate (duk_hthread *thr, duk_small_int_t lj_type) |
DUK_INTERNAL_DECL duk_hobject * | duk_error_prototype_from_code (duk_hthread *thr, duk_errcode_t err_code) |
#define DUK_ASSERT | ( | x | ) | do { /* assertion omitted */ } while (0) |
Definition at line 193 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ASSERT_DISABLE | ( | x | ) | do { /* assertion disabled */ } while (0) |
Definition at line 202 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ASSERT_DOUBLE_IS_NORMALIZED | ( | dval | ) | /* nop */ |
Definition at line 231 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ASSERT_EXPR | ( | x | ) | ((void) 0) |
Definition at line 195 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ASSERT_REFCOUNT_NONZERO_HEAPHDR | ( | h | ) | /* no refcount check */ |
Definition at line 218 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ASSERT_REFCOUNT_NONZERO_TVAL | ( | tv | ) | /* no refcount check */ |
Definition at line 219 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ASSERT_TOP | ( | ctx, | |
n ) DUK_ASSERT((duk_idx_t) duk_get_top((ctx)) == (duk_idx_t) (n)) |
Definition at line 222 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ASSERT_VALSTACK_SPACE | ( | thr, | |
n ) /* no valstack space check */ |
Definition at line 249 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR | ( | thr, | |
err, | |||
msg ) duk_err_handle_error((thr), (err)) |
Definition at line 112 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_ALLOC | ( | thr, | |
msg ) |
Definition at line 349 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_ALLOC_DEFMSG | ( | thr | ) |
Definition at line 352 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_API | ( | thr, | |
msg ) |
Definition at line 358 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_API_INDEX | ( | thr, | |
index ) |
Definition at line 355 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_FMT1 | ( | thr, | |
err, | |||
fmt, | |||
arg1 ) DUK_ERROR((thr),(err),(fmt)) |
Definition at line 115 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_FMT2 | ( | thr, | |
err, | |||
fmt, | |||
arg1, | |||
arg2 ) DUK_ERROR((thr),(err),(fmt)) |
Definition at line 118 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_FMT3 | ( | thr, | |
err, | |||
fmt, | |||
arg1, | |||
arg2, | |||
arg3 ) DUK_ERROR((thr),(err),(fmt)) |
Definition at line 121 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_FMT4 | ( | thr, | |
err, | |||
fmt, | |||
arg1, | |||
arg2, | |||
arg3, | |||
arg4 ) DUK_ERROR((thr),(err),(fmt)) |
Definition at line 124 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_INTERNAL | ( | thr, | |
msg ) |
Definition at line 343 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_INTERNAL_DEFMSG | ( | thr | ) |
Definition at line 346 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_RANGE | ( | thr, | |
msg ) |
Definition at line 361 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_RAW | ( | thr, | |
file, | |||
line, | |||
err, | |||
msg ) duk_err_handle_error((thr), (err)) |
Definition at line 113 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_RAW_FMT1 | ( | thr, | |
file, | |||
line, | |||
err, | |||
fmt, | |||
arg1 ) DUK_ERROR_RAW((thr),(file),(line),(err),(fmt)) |
Definition at line 116 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_RAW_FMT2 | ( | thr, | |
file, | |||
line, | |||
err, | |||
fmt, | |||
arg1, | |||
arg2 ) DUK_ERROR_RAW((thr),(file),(line),(err),(fmt)) |
Definition at line 119 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_RAW_FMT3 | ( | thr, | |
file, | |||
line, | |||
err, | |||
fmt, | |||
arg1, | |||
arg2, | |||
arg3 ) DUK_ERROR_RAW((thr),(file),(line),(err),(fmt)) |
Definition at line 122 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_RAW_FMT4 | ( | thr, | |
file, | |||
line, | |||
err, | |||
fmt, | |||
arg1, | |||
arg2, | |||
arg3, | |||
arg4 ) DUK_ERROR_RAW((thr),(file),(line),(err),(fmt)) |
Definition at line 125 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_REQUIRE_TYPE_INDEX | ( | thr, | |
index, | |||
expectname, | |||
lowmemstr ) |
Definition at line 327 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_SYNTAX | ( | thr, | |
msg ) |
Definition at line 364 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_TYPE | ( | thr, | |
msg ) |
Definition at line 367 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_UNIMPLEMENTED | ( | thr, | |
msg ) |
Definition at line 331 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_UNIMPLEMENTED_DEFMSG | ( | thr | ) |
Definition at line 334 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_UNSUPPORTED | ( | thr, | |
msg ) |
Definition at line 337 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_ERROR_UNSUPPORTED_DEFMSG | ( | thr | ) |
Definition at line 340 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_PANIC | ( | code, | |
msg ) duk_default_panic_handler((code),(msg)) |
Definition at line 156 of file duktape-1.8.0/src-separate/duk_error.h.
#define DUK_VALSTACK_ASSERT_EXTRA |
Definition at line 242 of file duktape-1.8.0/src-separate/duk_error.h.
DUK_INTERNAL_DECL void duk_err_setup_heap_ljstate | ( | duk_hthread * | thr, |
duk_small_int_t | lj_type ) |
Definition at line 40226 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, DUK_ASSERT, DUK_BIDX_DOUBLE_ERROR, DUK_D, DUK_DPRINT, duk_get_hobject(), DUK_LJ_TYPE_THROW, duk_pop(), DUK_TVAL_SET_TVAL_UPDREF, fatal(), duk_hthread::heap, duk_heap::lj, duk_ljstate::type, duk_hthread::valstack, duk_hthread::valstack_top, and duk_ljstate::value1.
Referenced by duk__js_execute_bytecode_inner(), duk_err_create_and_throw(), and duk_throw().
DUK_INTERNAL_DECL duk_hobject * duk_error_prototype_from_code | ( | duk_hthread * | thr, |
duk_errcode_t | err_code ) |
Definition at line 40195 of file duktape-1.5.2/src-noline/duktape.c.
References duk_hthread::builtins, duk_hthread::catchstack, duk_hthread::catchstack_top, DUK_BIDX_ERROR_PROTOTYPE, DUK_BIDX_EVAL_ERROR_PROTOTYPE, DUK_BIDX_RANGE_ERROR_PROTOTYPE, DUK_BIDX_REFERENCE_ERROR_PROTOTYPE, DUK_BIDX_SYNTAX_ERROR_PROTOTYPE, DUK_BIDX_TYPE_ERROR_PROTOTYPE, DUK_BIDX_URI_ERROR_PROTOTYPE, DUK_CAT_HAS_CATCH_ENABLED, DUK_ERR_ALLOC_ERROR, DUK_ERR_API_ERROR, DUK_ERR_ASSERTION_ERROR, DUK_ERR_ERROR, DUK_ERR_EVAL_ERROR, DUK_ERR_INTERNAL_ERROR, DUK_ERR_RANGE_ERROR, DUK_ERR_REFERENCE_ERROR, DUK_ERR_SYNTAX_ERROR, DUK_ERR_TYPE_ERROR, DUK_ERR_UNIMPLEMENTED_ERROR, DUK_ERR_URI_ERROR, and duk_hthread::resumer.
Referenced by duk_push_error_object_va_raw().
DUK_NORETURN | ( | DUK_INTERNAL_DECL void | duk_default_fatal_handlerduk_context *ctx, duk_errcode_t code, const char *msg | ) |
DUK_NORETURN | ( | DUK_INTERNAL_DECL void | duk_default_panic_handlerduk_errcode_t code, const char *msg | ) |
DUK_NORETURN | ( | DUK_INTERNAL_DECL void | duk_err_handle_errorduk_hthread *thr, duk_errcode_t code | ) |
DUK_NORETURN | ( | DUK_INTERNAL_DECL void | duk_err_rangeduk_hthread *thr | ) |
DUK_NORETURN | ( | DUK_INTERNAL_DECL void | duk_error_throw_from_negative_rcduk_hthread *thr, duk_ret_t rc | ) |