summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 283db99..0cc87d7 100644
--- a/variable.c
+++ b/variable.c
@@ -17,6 +17,8 @@
#include "node.h"
void rb_vm_change_state(void);
+void rb_vm_inc_const_missing_count(void);
+
st_table *rb_global_tbl;
st_table *rb_class_tbl;
static ID autoload, classpath, tmp_classpath;
@@ -1488,7 +1490,9 @@ rb_const_get_0(VALUE klass, ID id, int exclude, int recurse)
goto retry;
}
- return const_missing(klass, id);
+ value = const_missing(klass, id);
+ rb_vm_inc_const_missing_count();
+ return value;
}
VALUE