summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index e00f32ad09..e77d3b83e5 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -458,7 +458,18 @@ typedef struct rb_thread_struct {
struct rb_vm_tag *tag;
struct rb_vm_protect_tag *protect_tag;
+ /*! Thread-local state of evaluation context.
+ *
+ * If negative, this thread is evaluating the main program.
+ * If positive, this thread is evaluating a program under Kernel::eval
+ * family.
+ */
int parse_in_eval;
+
+ /*! Thread-local state of compiling context.
+ *
+ * If non-zero, the parser does not automatically print error messages to
+ * stderr. */
int mild_compile_error;
/* storage */