mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
13 lines
223 B
C++
13 lines
223 B
C++
#include <ruby/ruby.h>
|
|
|
|
static VALUE
|
|
func_argm1(int argc, VALUE *argv, VALUE self)
|
|
{
|
|
return argc > 0 ? argv[0] : Qnil;
|
|
}
|
|
|
|
extern "C" void
|
|
Init_failure(void)
|
|
{
|
|
rb_define_method(rb_cObject, "argm1", func_argm1, 0);
|
|
}
|