Sha256: 50ec7f167546558998338093c521ce0429b82cc3c8c95d9051cec86e81593d21

Contents?: true

Size: 269 Bytes

Versions: 3

Compression:

Stored size: 269 Bytes

Contents

/*
  @overload <%=name%>
  @return [Integer]

  returns <%=name%> field in <%=struct%> struct.
*/
static VALUE
<%=c_func(0)%>(VALUE self)
{
    <%=struct%> *w;

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

    return SIZET2NUM(w-><%=name%>);
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
numo-gsl-0.1.2 ext/numo/gsl/histogram/tmpl/c_sizet_f_field.c
numo-gsl-0.1.1 ext/numo/gsl/histogram/tmpl/c_sizet_f_field.c
numo-gsl-0.1.0 ext/numo/gsl/histogram/tmpl/c_sizet_f_field.c