summaryrefslogtreecommitdiffhomepage
path: root/src/irep.h
blob: b3f9e8d874df9f5d25d6f2892a39e0e0d79914b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
** irep.h - mrb_irep structure
** 
** See Copyright Notice in mruby.h
*/

#ifndef MRUBY_IREP_H
#define MRUBY_IREP_H

typedef struct mrb_irep {
  int idx;

  int flags;
  int nlocals;
  int nregs;

  mrb_code *iseq;
  mrb_value *pool;
  mrb_sym *syms;

  int ilen, plen, slen;
} mrb_irep;

#define MRB_IREP_NOFREE 3
#define MRB_ISEQ_NOFREE 1

void mrb_add_irep(mrb_state *mrb, int n);

#endif	/* MRUBY_IREP_H */