Merge pull request #5779 from dearblue/debug.h

Make definition of `mrb_irep` by `typedef` in `mruby.h`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-08-14 17:27:11 +09:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ typedef uint8_t mrb_code;
*/
typedef uint32_t mrb_aspec;
struct mrb_irep;
typedef struct mrb_irep mrb_irep;
struct mrb_state;
/**
+2 -2
View File
@@ -52,7 +52,7 @@ struct mrb_irep_catch_handler {
};
/* Program data array struct */
typedef struct mrb_irep {
struct mrb_irep {
uint16_t nlocals; /* Number of local variables */
uint16_t nregs; /* Number of register variables */
uint16_t clen; /* Number of catch handlers */
@@ -76,7 +76,7 @@ typedef struct mrb_irep {
uint16_t plen, slen;
uint16_t rlen;
uint16_t refcnt;
} mrb_irep;
};
#define MRB_ISEQ_NO_FREE 1
#define MRB_IREP_NO_FREE 2