• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// static
2{{struct.name}}Ptr {{struct.name}}::New() {
3  {{struct.name}}Ptr rv;
4  mojo::internal::StructHelper<{{struct.name}}>::Initialize(&rv);
5  return rv;
6}
7
8{{struct.name}}::{{struct.name}}()
9{%- for field in struct.fields %}
10    {% if loop.first %}:{% else %} {% endif %} {{field.name}}({{field|default_value}}){% if not loop.last %},{% endif %}
11{%- endfor %} {
12}
13
14{{struct.name}}::~{{struct.name}}() {
15}
16