Bug #9321 » rb_mod_const_missing.patch
| variable.c | ||
|---|---|---|
|
#include "constant.h"
|
||
|
#include "internal.h"
|
||
|
#include "id.h"
|
||
|
#include "vm_core.h"
|
||
|
st_table *rb_global_tbl;
|
||
|
static ID autoload, classpath, tmp_classpath, classid;
|
||
| ... | ... | |
|
VALUE
|
||
|
rb_mod_const_missing(VALUE klass, VALUE name)
|
||
|
{
|
||
|
rb_thread_t *th = GET_THREAD();
|
||
|
EXEC_EVENT_HOOK(th, RUBY_EVENT_C_RETURN, rb_cModule, idConst_missing, rb_cModule, Qnil);
|
||
|
rb_frame_pop(); /* pop frame for "const_missing" */
|
||
|
uninitialized_constant(klass, rb_to_id(name));
|
||