summaryrefslogtreecommitdiff
path: root/regint.h
diff options
context:
space:
mode:
Diffstat (limited to 'regint.h')
-rw-r--r--regint.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/regint.h b/regint.h
index c880103..3d1ce7b 100644
--- a/regint.h
+++ b/regint.h
@@ -110,10 +110,10 @@
#define xfree free
#endif
-#define CHECK_INTERRUPT_IN_MATCH_AT
-
#ifdef RUBY
+#include "vm_core.h"
+#define CHECK_INTERRUPT_IN_MATCH_AT RUBY_VM_CHECK_INTS()
#define onig_st_init_table st_init_table
#define onig_st_init_table_with_size st_init_table_with_size
#define onig_st_init_numtable st_init_numtable
@@ -156,6 +156,8 @@
/* */
#define onig_st_is_member st_is_member
+#define CHECK_INTERRUPT_IN_MATCH_AT
+
#endif
#define STATE_CHECK_STRING_THRESHOLD_LEN 7