mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add compiler flag to disable direct threading (#4075)
* Add option to disable direct threading * Prepend MRB_ to option name
This commit is contained in:
committed by
Yukihiro "Matz" Matsumoto
parent
9bd2a3b5d9
commit
8fc56f062e
@@ -927,10 +927,11 @@ argnum_error(mrb_state *mrb, mrb_int num)
|
||||
#define BYTECODE_DECODER(x) (x)
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef MRB_DISABLE_DIRECT_THREADING
|
||||
#if defined __GNUC__ || defined __clang__ || defined __INTEL_COMPILER
|
||||
#define DIRECT_THREADED
|
||||
#endif
|
||||
#endif /* ifndef MRB_DISABLE_DIRECT_THREADING */
|
||||
|
||||
#ifndef DIRECT_THREADED
|
||||
|
||||
|
||||
Reference in New Issue
Block a user