File: array.tpl

package info (click to toggle)
ruby-rgen 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,524 kB
  • ctags: 1,621
  • sloc: ruby: 11,091; xml: 2,181; yacc: 72; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
<% define 'ArrayDefinition', :for => CArray do %>
  <%= getType %> <%= name %>[<%= size %>] = {<%iinc%>
    <% expand 'InitValue', :foreach => initvalue, :separator => ",\r\n" %><%nl%><%idec%>
  };
  <% expand '../root::TextFromRoot' %>
  <% expand '/root::TextFromRoot' %>
<% end %>

<% define 'InitValue', :for => PrimitiveInitValue do %>
  <%= value %><%nows%>
<% end %>