diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-09-21 23:38:50 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 18:20:27 +0900 |
| commit | 356b719fef938f964eb7ba1aa93aadac9470fec1 (patch) | |
| tree | 4e15e528d44a4fbd8fb0fb966f51ef04af9b2980 /src | |
| parent | 896338e21969284ceb576f1665ea33aa54797493 (diff) | |
| download | mruby-356b719fef938f964eb7ba1aa93aadac9470fec1.tar.gz mruby-356b719fef938f964eb7ba1aa93aadac9470fec1.zip | |
Remove `DEBUG_ONLY_EXPR()` from `CHECKPOINT_*` macros; ref #5060
To allow C++ compilation. Fix suggested by @dearblue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -919,29 +919,19 @@ prepare_tagged_break(mrb_state *mrb, uint32_t tag, const struct RProc *proc, mrb #define CHECKPOINT_RESTORE(tag) \ do { \ - DEBUG_ONLY_EXPR(int current_checkpoint_tag = (tag)); \ if (FALSE) { \ CHECKPOINT_LABEL_MAKE(tag): \ - DEBUG_ONLY_EXPR(current_checkpoint_tag = (tag)); \ do { #define CHECKPOINT_MAIN(tag) \ } while (0); \ } \ - DEBUG_ONLY_EXPR(mrb_assert((tag) == current_checkpoint_tag)); \ do { #define CHECKPOINT_END(tag) \ } while (0); \ - DEBUG_ONLY_EXPR(mrb_assert((tag) == current_checkpoint_tag)); \ } while (0) -#ifdef MRB_DEBUG -#define DEBUG_ONLY_EXPR(e) e -#else -#define DEBUG_ONLY_EXPR(e) ((void)0) -#endif - #define ERR_PC_SET(mrb) mrb->c->ci->err = pc0; #define ERR_PC_CLR(mrb) mrb->c->ci->err = 0; #ifdef MRB_ENABLE_DEBUG_HOOK |
