Change soft-fail to use the config, rather than env
[rbx.git] / spec / subtend / ext / subtend_float.c
blob7dae99de5cd93b9fa6ceaccc002cb0daaaac16ca
1 #include <ruby.h>
2 #include <math.h>
4 static VALUE sf_new_zero(VALUE self) {
5 double flt = 0;
6 return rb_float_new(flt);
9 static VALUE sf_new_point_five(VALUE self) {
10 double flt = 0.555;
11 return rb_float_new(flt);
14 void Init_subtend_float() {
15 VALUE cls;
16 cls = rb_define_class("SubtendFloat", rb_cObject);
17 rb_define_method(cls, "sf_new_zero", sf_new_zero, 0);
18 rb_define_method(cls, "sf_new_point_five", sf_new_point_five, 0);