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

14 lines
223 B
C++
Raw Normal View History

2019-11-22 04:39:39 -05:00
#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);
}