Sha256: fbfabc49a2a08222d60fc5f988e60a93259f1932450894abd518a7fdc7e35c28

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

/*
  @overload <%=name%>()
  @return [<%=full_class_name%>]

 <%= desc %>
 */
static VALUE
<%=c_func(0)%>(VALUE self)
{
    <%=struct%> *x, *w;

    TypedData_Get_Struct(self, <%=struct%>, &<%=data_type_var%>, x);

    w = <%=func_name%>(x);
    if (!w) {
        rb_raise(rb_eNoMemError,"fail to allocate struct");
    }
    return TypedData_Wrap_Struct(<%=class_var%>, &<%=data_type_var%>, (void*)w);
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
numo-gsl-0.1.2 ext/numo/gsl/gen/tmpl/c_other_f_void.c
numo-gsl-0.1.1 ext/numo/gsl/gen/tmpl/c_other_f_void.c
numo-gsl-0.1.0 ext/numo/gsl/gen/tmpl/c_other_f_void.c