Commit cb29c9b4 authored by Kazuaki Tanaka's avatar Kazuaki Tanaka

Fix return value type of bytecode_decoder

parent 968ebac0
...@@ -177,7 +177,7 @@ typedef struct mrb_state { ...@@ -177,7 +177,7 @@ typedef struct mrb_state {
#endif #endif
#ifdef MRB_BYTECODE_DECODE_OPTION #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 #endif
struct RClass *eException_class; struct RClass *eException_class;
......
...@@ -720,9 +720,9 @@ argnum_error(mrb_state *mrb, mrb_int num) ...@@ -720,9 +720,9 @@ argnum_error(mrb_state *mrb, mrb_int num)
#endif #endif
#ifdef MRB_BYTECODE_DECODE_OPTION #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 #else
#define BYTECODE_DECODER(x) (x); #define BYTECODE_DECODER(x) (x)
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment