mirror of
https://github.com/DrBeef/Quake2Quest.git
synced 2025-03-13 11:52:18 +00:00
16 lines
602 B
Text
16 lines
602 B
Text
|
{% extends "base/base.j2" %}
|
||
|
{% block main %}
|
||
|
{% include "base/headers.j2" %}
|
||
|
{% for func in functions %}
|
||
|
{% block definition scoped %}
|
||
|
{{ func.return }} gl4es_{{ func.name }}({{ func.args|args }}) {
|
||
|
{% block load scoped %}{% endblock %}
|
||
|
{% block call scoped %}
|
||
|
{% if not func.void %}return {% endif %}{% block prefix %}wrap{% endblock %}_{{ func.name }}({{ func.args|args(0) }});
|
||
|
{%- endblock %}
|
||
|
}
|
||
|
{{ func.return }} {{ func.name }}({{ func.args|args }}) __attribute__((alias("gl4es_{{ func.name }}"))) __attribute__((visibility("default")));
|
||
|
{% endblock %}
|
||
|
{% endfor %}
|
||
|
{% endblock %}
|