# Definitions used for Jinja template replacement.

# This file is part of Cantera. See License.txt in the top-level directory or
# at https://cantera.org/license.txt for license and copyright information.

yaml-definition: |-
  {{ c_func.name }}:
    brief: {{ c_func.brief }}
    what: {{ what }}
    declaration: {{ c_func.declaration() }}
    {% if c_func.arglist %}
    parameters:
      {% for par in c_func.arglist %}
      {{ par.name }}: {{ par.description }}
      {% endfor %}
    {% endif %}
    {% if c_func.returns %}
    {{ 'returns: ' + c_func.returns }}
    {% endif %}
    {% if wraps %}
    wraps: {{ wraps }}
    {% endif %}
    {% if uses %}
    uses:
    {% for uu in uses %}
    - {{ uu }}
    {% endfor %}
    {% endif %}
