summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-02-04 23:22:01 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-02-04 23:22:01 +0900
commit5e514c910fdde7ec29c9110e8c9535d8e83b2a8f (patch)
tree85bc7f67f92b92b23a63b5baa2766a18189b3760 /include/mruby.h
parent4344ca0acab1196ccdc515d181259003fb0cfe94 (diff)
downloadmruby-5e514c910fdde7ec29c9110e8c9535d8e83b2a8f.tar.gz
mruby-5e514c910fdde7ec29c9110e8c9535d8e83b2a8f.zip
cache mrb_regexp_p(); ref #980
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 065d835ce..9aa5b2cd3 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -124,9 +124,13 @@ typedef struct {
typedef void (*mrb_atexit_func)(struct mrb_state*);
+#define MRB_STATE_NO_REGEXP 1
+#define MRB_STATE_REGEXP 2
+
typedef struct mrb_state {
struct mrb_jmpbuf *jmp;
+ uint32_t flags;
mrb_allocf allocf; /* memory allocation function */
void *allocf_ud; /* auxiliary data of allocf */