From f8601bd903d6c9f288fc39cc9f277c1275291ff3 Mon Sep 17 00:00:00 2001 From: yugui Date: Thu, 14 Jun 2012 02:21:51 +0000 Subject: * 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 --- vm_core.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vm_core.h') 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 */ -- cgit v1.2.3