/* call-seq:
* iseq.local_table => String
*
* Returns the sequence's local table.
*/
static VALUE iseq_local_table(VALUE self)
{
rb_iseq_t *iseqdat = iseq_check(self);
VALUE ary = rb_ary_new();
int j;
for(j = 0; j < iseqdat->local_table_size; ++j)
{
ID id = iseqdat->local_table[j];
if(rb_id2name(id))
{
rb_ary_push(ary, ID2SYM(id));
}
else
{
// Temporary
rb_ary_push(ary, Qnil);
}
}
return ary;
}