Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created July 12, 2009 23:42
Show Gist options
  • Select an option

  • Save methodmissing/145841 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/145841 to your computer and use it in GitHub Desktop.
#include "ruby.h"
#include "node.h"
#include "env.h"
static VALUE rb_f_callsite( VALUE obj )
{
return INT2FIX(ruby_frame->uniq);
}
void
Init_callsite()
{
rb_define_global_function("callsite", rb_f_callsite, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment