From 6b8582c95d64b75837e6778c712d705e07edad17 Mon Sep 17 00:00:00 2001 From: dearblue Date: Fri, 17 Dec 2021 23:02:04 +0900 Subject: Add `bin/mrbc --no-ext-ops` switch Print an error if `OP_EXT[123]` is needed when generating mruby binary. This may be useful for mruby/c. Inspired by #5590. --- include/mruby/compile.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/mruby/compile.h b/include/mruby/compile.h index aa1739ef1..5c52a13a7 100644 --- a/include/mruby/compile.h +++ b/include/mruby/compile.h @@ -31,6 +31,7 @@ typedef struct mrbc_context { mrb_bool no_exec:1; mrb_bool keep_lv:1; mrb_bool no_optimize:1; + mrb_bool no_ext_ops:1; const struct RProc *upper; size_t parser_nerr; @@ -155,6 +156,7 @@ struct mrb_parser_state { mrb_bool no_optimize:1; mrb_bool capture_errors:1; + mrb_bool no_ext_ops:1; const struct RProc *upper; struct mrb_parser_message error_buffer[10]; struct mrb_parser_message warn_buffer[10]; -- cgit v1.2.3