summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-14 02:21:51 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-14 02:21:51 +0000
commitf8601bd903d6c9f288fc39cc9f277c1275291ff3 (patch)
tree3898a86583c86fe193605119783d52a9b0ef2610 /vm_core.h
parente9e603145f48f352b08541187a7c4d528f8a6399 (diff)
* eval.c: Add doxygen comments.
* ruby.c: ditto. * thread_pthread.c: ditto * version.c: ditto. * vm_core.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 */