Sha256: c09002a3e211474612745ccc51d2e0a6879d3cd55ef5fc833ac45b8092e7a9c3
Contents?: true
Size: 489 Bytes
Versions: 3
Compression:
Stored size: 489 Bytes
Contents
/* class definition: <%= full_class_name %> */ static VALUE <%=class_var%>; static void <%=name%>_free(void *ptr) { <%=free_func%>(ptr); } static size_t <%=name%>_memsize(const void *ptr) { return sizeof(<%=struct%>); } static const rb_data_type_t <%=name%>_data_type = { "<%=full_class_name%>", {NULL, <%=name%>_free, <%=name%>_memsize,}, 0, 0, RUBY_TYPED_FREE_IMMEDIATELY|RUBY_TYPED_WB_PROTECTED }; <% set data_type_var:name+"_data_type" %> <%= method_code %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
numo-gsl-0.1.2 | ext/numo/gsl/gen/tmpl/class.c |
numo-gsl-0.1.1 | ext/numo/gsl/gen/tmpl/class.c |
numo-gsl-0.1.0 | ext/numo/gsl/gen/tmpl/class.c |