w32tex
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)  

boxing_no.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  mrb_value_union
 
struct  mrb_value
 

Macros

#define MRB_FIXNUM_SHIFT   0
 
#define MRB_SYMBOL_SHIFT   0
 
#define MRB_FIXNUM_MIN   MRB_INT_MIN
 
#define MRB_FIXNUM_MAX   MRB_INT_MAX
 
#define mrb_ptr(o)   (o).value.p
 
#define mrb_cptr(o)   mrb_ptr(o)
 
#define mrb_float(o)   (o).value.f
 
#define mrb_fixnum(o)   (o).value.i
 
#define mrb_integer(o)   mrb_fixnum(o)
 
#define mrb_symbol(o)   (o).value.sym
 
#define mrb_type(o)   (o).tt
 
#define BOXNIX_SET_VALUE(o, ttt, attr, v)
 
#define SET_NIL_VALUE(r)   BOXNIX_SET_VALUE(r, MRB_TT_FALSE, value.i, 0)
 
#define SET_FALSE_VALUE(r)   BOXNIX_SET_VALUE(r, MRB_TT_FALSE, value.i, 1)
 
#define SET_TRUE_VALUE(r)   BOXNIX_SET_VALUE(r, MRB_TT_TRUE, value.i, 1)
 
#define SET_BOOL_VALUE(r, b)   BOXNIX_SET_VALUE(r, b ? MRB_TT_TRUE : MRB_TT_FALSE, value.i, 1)
 
#define SET_INT_VALUE(mrb, r, n)   BOXNIX_SET_VALUE(r, MRB_TT_INTEGER, value.i, (n))
 
#define SET_FIXNUM_VALUE(r, n)   BOXNIX_SET_VALUE(r, MRB_TT_INTEGER, value.i, (n))
 
#define SET_FLOAT_VALUE(mrb, r, v)   BOXNIX_SET_VALUE(r, MRB_TT_FLOAT, value.f, (v))
 
#define SET_SYM_VALUE(r, v)   BOXNIX_SET_VALUE(r, MRB_TT_SYMBOL, value.sym, (v))
 
#define SET_OBJ_VALUE(r, v)   BOXNIX_SET_VALUE(r, (((struct RObject*)(v))->tt), value.p, (v))
 
#define SET_CPTR_VALUE(mrb, r, v)   BOXNIX_SET_VALUE(r, MRB_TT_CPTR, value.p, v)
 
#define SET_UNDEF_VALUE(r)   BOXNIX_SET_VALUE(r, MRB_TT_UNDEF, value.i, 0)
 

Typedefs

typedef struct mrb_value mrb_value
 

Detailed Description

See Copyright Notice in mruby.h

Definition in file boxing_no.h.

Macro Definition Documentation

◆ BOXNIX_SET_VALUE

#define BOXNIX_SET_VALUE (   o,
  ttt,
  attr,
  v 
)
Value:
do {\
(o).tt = ttt;\
(o).attr = v;\
} while (0)
int v
Definition: dviconv.c:10

Definition at line 39 of file boxing_no.h.

◆ mrb_cptr

#define mrb_cptr (   o)    mrb_ptr(o)

Definition at line 30 of file boxing_no.h.

◆ mrb_fixnum

#define mrb_fixnum (   o)    (o).value.i

Definition at line 34 of file boxing_no.h.

◆ MRB_FIXNUM_MAX

#define MRB_FIXNUM_MAX   MRB_INT_MAX

Definition at line 13 of file boxing_no.h.

◆ MRB_FIXNUM_MIN

#define MRB_FIXNUM_MIN   MRB_INT_MIN

Definition at line 12 of file boxing_no.h.

◆ MRB_FIXNUM_SHIFT

#define MRB_FIXNUM_SHIFT   0

Definition at line 10 of file boxing_no.h.

◆ mrb_float

#define mrb_float (   o)    (o).value.f

Definition at line 32 of file boxing_no.h.

◆ mrb_integer

#define mrb_integer (   o)    mrb_fixnum(o)

Definition at line 35 of file boxing_no.h.

◆ mrb_ptr

#define mrb_ptr (   o)    (o).value.p

Definition at line 29 of file boxing_no.h.

◆ mrb_symbol

#define mrb_symbol (   o)    (o).value.sym

Definition at line 36 of file boxing_no.h.

◆ MRB_SYMBOL_SHIFT

#define MRB_SYMBOL_SHIFT   0

Definition at line 11 of file boxing_no.h.

◆ mrb_type

#define mrb_type (   o)    (o).tt

Definition at line 37 of file boxing_no.h.

◆ SET_BOOL_VALUE

#define SET_BOOL_VALUE (   r,
  b 
)    BOXNIX_SET_VALUE(r, b ? MRB_TT_TRUE : MRB_TT_FALSE, value.i, 1)

Definition at line 47 of file boxing_no.h.

◆ SET_CPTR_VALUE

#define SET_CPTR_VALUE (   mrb,
  r,
  v 
)    BOXNIX_SET_VALUE(r, MRB_TT_CPTR, value.p, v)

Definition at line 55 of file boxing_no.h.

◆ SET_FALSE_VALUE

#define SET_FALSE_VALUE (   r)    BOXNIX_SET_VALUE(r, MRB_TT_FALSE, value.i, 1)

Definition at line 45 of file boxing_no.h.

◆ SET_FIXNUM_VALUE

#define SET_FIXNUM_VALUE (   r,
  n 
)    BOXNIX_SET_VALUE(r, MRB_TT_INTEGER, value.i, (n))

Definition at line 49 of file boxing_no.h.

◆ SET_FLOAT_VALUE

#define SET_FLOAT_VALUE (   mrb,
  r,
  v 
)    BOXNIX_SET_VALUE(r, MRB_TT_FLOAT, value.f, (v))

Definition at line 51 of file boxing_no.h.

◆ SET_INT_VALUE

#define SET_INT_VALUE (   mrb,
  r,
  n 
)    BOXNIX_SET_VALUE(r, MRB_TT_INTEGER, value.i, (n))

Definition at line 48 of file boxing_no.h.

◆ SET_NIL_VALUE

#define SET_NIL_VALUE (   r)    BOXNIX_SET_VALUE(r, MRB_TT_FALSE, value.i, 0)

Definition at line 44 of file boxing_no.h.

◆ SET_OBJ_VALUE

#define SET_OBJ_VALUE (   r,
  v 
)    BOXNIX_SET_VALUE(r, (((struct RObject*)(v))->tt), value.p, (v))

Definition at line 54 of file boxing_no.h.

◆ SET_SYM_VALUE

#define SET_SYM_VALUE (   r,
  v 
)    BOXNIX_SET_VALUE(r, MRB_TT_SYMBOL, value.sym, (v))

Definition at line 53 of file boxing_no.h.

◆ SET_TRUE_VALUE

#define SET_TRUE_VALUE (   r)    BOXNIX_SET_VALUE(r, MRB_TT_TRUE, value.i, 1)

Definition at line 46 of file boxing_no.h.

◆ SET_UNDEF_VALUE

#define SET_UNDEF_VALUE (   r)    BOXNIX_SET_VALUE(r, MRB_TT_UNDEF, value.i, 0)

Definition at line 56 of file boxing_no.h.

Typedef Documentation

◆ mrb_value

typedef struct mrb_value mrb_value