forked from mruby/mruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathirep.h
More file actions
40 lines (30 loc) · 631 Bytes
/
irep.h
File metadata and controls
40 lines (30 loc) · 631 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
/*
** mruby/irep.h - mrb_irep structure
**
** See Copyright Notice in mruby.h
*/
#ifndef MRUBY_IREP_H
#define MRUBY_IREP_H
#if defined(__cplusplus)
extern "C" {
#endif
typedef struct mrb_irep {
uint32_t idx;
uint16_t nlocals;
uint16_t nregs;
uint8_t flags;
mrb_code *iseq;
mrb_value *pool;
mrb_sym *syms;
/* debug info */
const char *filename;
uint16_t *lines;
size_t ilen, plen, slen;
} mrb_irep;
#define MRB_ISEQ_NO_FREE 1
mrb_irep *mrb_add_irep(mrb_state *mrb);
mrb_value mrb_load_irep(mrb_state*, const uint8_t*);
#if defined(__cplusplus)
} /* extern "C" { */
#endif
#endif /* MRUBY_IREP_H */