Files
mruby-mruby/include/mruby/irep.h
T
2012-12-19 20:44:30 +09:00

41 lines
613 B
C

/*
** 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 {
int idx:16;
int nlocals:16;
int nregs:16;
int flags:8;
mrb_code *iseq;
mrb_value *pool;
mrb_sym *syms;
/* debug info */
const char *filename;
short *lines;
int 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 char*);
#if defined(__cplusplus)
} /* extern "C" { */
#endif
#endif /* MRUBY_IREP_H */