diff options
| author | Kazuaki Tanaka <[email protected]> | 2016-09-20 23:15:49 +0000 |
|---|---|---|
| committer | Kazuaki Tanaka <[email protected]> | 2016-09-20 23:15:49 +0000 |
| commit | cb29c9b4156ad63f2cd06ca4b89c981cb70cec58 (patch) | |
| tree | 04c4cdc77a374c7ffa7f090477ba6f759a27ebbf | |
| parent | 968ebac00183b2d015be89349d10c4ee96664e47 (diff) | |
| download | mruby-cb29c9b4156ad63f2cd06ca4b89c981cb70cec58.tar.gz mruby-cb29c9b4156ad63f2cd06ca4b89c981cb70cec58.zip | |
Fix return value type of bytecode_decoder
| -rw-r--r-- | include/mruby.h | 2 | ||||
| -rw-r--r-- | src/vm.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/mruby.h b/include/mruby.h index 57121fecf..5375529dc 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -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; @@ -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 |
