Commit 8fc56f06 authored by sbsoftware's avatar sbsoftware Committed by Yukihiro "Matz" Matsumoto

Add compiler flag to disable direct threading (#4075)

* Add option to disable direct threading

* Prepend MRB_ to option name
parent 9bd2a3b5
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment