About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

backtrace.c File Reference
#include <mruby.h>
#include <mruby/variable.h>
#include <mruby/proc.h>
#include <mruby/array.h>
#include <mruby/string.h>
#include <mruby/class.h>
#include <mruby/debug.h>
#include <mruby/error.h>
#include <mruby/numeric.h>
#include <mruby/data.h>
#include <mruby/presym.h>
Include dependency graph for backtrace.c:

Go to the source code of this file.


struct  backtrace_location


typedef void(* each_backtrace_func) (mrb_state *, const struct backtrace_location *, void *)


mrb_value mrb_exc_inspect (mrb_state *mrb, mrb_value exc)
mrb_value mrb_unpack_backtrace (mrb_state *mrb, mrb_value backtrace)
static void each_backtrace (mrb_state *mrb, ptrdiff_t ciidx, each_backtrace_func func, void *data)
static void print_backtrace (mrb_state *mrb, struct RObject *exc, mrb_value backtrace)
void mrb_print_backtrace (mrb_state *mrb)
static void count_backtrace_i (mrb_state *mrb, const struct backtrace_location *loc, void *data)
static void pack_backtrace_i (mrb_state *mrb, const struct backtrace_location *loc, void *data)
static mrb_value packed_backtrace (mrb_state *mrb)
void mrb_keep_backtrace (mrb_state *mrb, mrb_value exc)
mrb_value mrb_exc_backtrace (mrb_state *mrb, mrb_value exc)
mrb_value mrb_get_backtrace (mrb_state *mrb)


static const mrb_data_type bt_type = { "Backtrace", mrb_free }

Typedef Documentation

◆ each_backtrace_func

typedef void(* each_backtrace_func) (mrb_state *, const struct backtrace_location *, void *)

Definition at line 25 of file backtrace.c.

Function Documentation

◆ count_backtrace_i()

static void count_backtrace_i ( mrb_state mrb,
const struct backtrace_location loc,
void data 

Definition at line 131 of file backtrace.c.

References data.

Referenced by packed_backtrace().

◆ each_backtrace()

◆ mrb_exc_backtrace()

mrb_value mrb_exc_backtrace ( mrb_state mrb,
mrb_value  exc 

◆ mrb_exc_inspect()

mrb_value mrb_exc_inspect ( mrb_state mrb,
mrb_value  exc 

◆ mrb_get_backtrace()

mrb_value mrb_get_backtrace ( mrb_state mrb)

Definition at line 234 of file backtrace.c.

References mrb_unpack_backtrace(), and packed_backtrace().

Referenced by mrb_f_caller().

◆ mrb_keep_backtrace()

void mrb_keep_backtrace ( mrb_state mrb,
mrb_value  exc 

◆ mrb_print_backtrace()

void mrb_print_backtrace ( mrb_state mrb)

◆ mrb_unpack_backtrace()

◆ pack_backtrace_i()

static void pack_backtrace_i ( mrb_state mrb,
const struct backtrace_location loc,
void data 

Definition at line 141 of file backtrace.c.

References data, loc, and ptr.

Referenced by packed_backtrace().

◆ packed_backtrace()

◆ print_backtrace()

static void print_backtrace ( mrb_state mrb,
struct RObject exc,
mrb_value  backtrace 

Variable Documentation

◆ bt_type

const mrb_data_type bt_type = { "Backtrace", mrb_free }

Definition at line 27 of file backtrace.c.

Referenced by mrb_unpack_backtrace(), and packed_backtrace().