mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix return value type of bytecode_decoder
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user