Fix return value type of bytecode_decoder

This commit is contained in:
Kazuaki Tanaka
2016-09-20 23:15:49 +00:00
parent 968ebac001
commit cb29c9b415
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ typedef struct mrb_state {
#endif
#ifdef MRB_BYTECODE_DECODE_OPTION
void (*bytecode_decoder)(struct mrb_state* mrb, mrb_code *code);
mrb_code (*bytecode_decoder)(struct mrb_state* mrb, mrb_code code);
#endif
struct RClass *eException_class;
+2 -2
View File
@@ -720,9 +720,9 @@ argnum_error(mrb_state *mrb, mrb_int num)
#endif
#ifdef MRB_BYTECODE_DECODE_OPTION
#define BYTECODE_DECODER(x) if( (mrb)->bytecode_decoder ) (mrb)->bytecode_decoder((mrb), (x))
#define BYTECODE_DECODER(x) ((mrb)->bytecode_decoder)?(mrb)->bytecode_decoder((mrb), (x)):(x)
#else
#define BYTECODE_DECODER(x) (x);
#define BYTECODE_DECODER(x) (x)
#endif