Skip to content

Commit

Permalink
c: fixes surplus of empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Jun 18, 2020
1 parent 6467cd6 commit cd06d9a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions glad/generator/c/templates/template_utils.h
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
#if {{ protections|map('defined')|join(' || ') }}
{% endif %}
{{ caller() }}
{% if protections %}
{%- if protections %}
#endif
{% endif %}
{% endmacro %}
@@ -50,20 +50,20 @@ typedef enum {{ type.name }} {
{{ member.name }} = {{ enum_member(type, member) }}{{ ',' if not loop.last }}
{% endfor %}
} {{ type.name }};
{%- elif type.alias -%}
{% elif type.alias -%}
typedef enum {{ type.alias }} {{ type.name }};
{%- endif -%}
{%- elif type.category in ('struct', 'union') -%}
{% endif -%}
{% elif type.category in ('struct', 'union') -%}
typedef {{ type.category }} {% if type.alias %}{{ type.alias }}{% else %}{{ type.name }}{% endif %} {% if type.members %}{
{% for member in type.members %}
{{ member.type._raw }};
{% endfor %}
}{% endif %} {{ type.name }};
{%- elif type.alias %}
{% elif type.alias %}
#define {{ type.name }} {{ type.alias }}
{%- elif type._raw|trim -%}
{% elif type._raw|trim -%}
{{ type._raw|trim|replace('APIENTRY', 'GLAD_API_PTR') }}
{%- endif %}
{% endif %}
{% endcall %}
{% endmacro %}

0 comments on commit cd06d9a

Please sign in to comment.