зеркало из https://github.com/github/ruby.git
* insns.def (trace): C99ism.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
47db28bc7b
Коммит
6d625e4b6e
|
@ -1,3 +1,7 @@
|
|||
Wed Jul 2 01:58:19 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* insns.def (trace): C99ism.
|
||||
|
||||
Wed Jul 2 01:53:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* Add coverage measurement constant COVERAGE__. This constant is not
|
||||
|
|
|
@ -854,10 +854,11 @@ trace
|
|||
rb_event_flag_t flag = nf;
|
||||
if (coverage) {
|
||||
long line = rb_sourceline() - 1;
|
||||
long count;
|
||||
if (RARRAY_PTR(coverage)[line] == Qnil) {
|
||||
rb_bug("bug");
|
||||
}
|
||||
long count = FIX2LONG(RARRAY_PTR(coverage)[line]) + 1;
|
||||
count = FIX2LONG(RARRAY_PTR(coverage)[line]) + 1;
|
||||
if (POSFIXABLE(count)) {
|
||||
RARRAY_PTR(coverage)[line] = LONG2FIX(count);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче