Add compiler flag to disable direct threading (#4075)

* Add option to disable direct threading

* Prepend MRB_ to option name
This commit is contained in:
sbsoftware
2018-09-21 04:22:53 +02:00
committed by Yukihiro "Matz" Matsumoto
parent 9bd2a3b5d9
commit 8fc56f062e
+2 -1
View File
@@ -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