Sha256: b39011a2527dfad2d123cd4879ad8d75443cbaacd47386d904ad1718059eca9f
Contents?: true
Size: 376 Bytes
Versions: 3
Compression:
Stored size: 376 Bytes
Contents
<% set name: "new" set singleton: true %> /* @overload new allocate instance of <%=class_name%> class. <%= desc %> */ static VALUE <%=c_func(0)%>(VALUE self) { <%=struct%> *w; w = <%=func_name%>(); 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_new_void.c |
numo-gsl-0.1.1 | ext/numo/gsl/gen/tmpl/c_new_void.c |
numo-gsl-0.1.0 | ext/numo/gsl/gen/tmpl/c_new_void.c |