1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-/cxxanyargs/failurem1.cpp
2019-11-22 18:42:49 +09:00

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);
}