{% if page.name == conf.name %} {% assign ispage = true %} {% if page.category contains 'in-review' %} {% alert info %}This page is marked for review. The following information may be outdated or may no longer apply to the latest Marlin.{% endalert %} {% elsif page.category contains 'wip' %} {% alert info %}This page is under construction and may not have complete or up-to-date information.{% endalert %} {% endif %} {% assign h1 = "h1" %}{% assign h3 = "h3" %} {% if page.label %}{% assign title = page.label %}{% else %}{% assign title = false %}{% endif %} {% if page.since %}{% assign since = page.since %}{% else %}{% assign since = false %}{% endif %} {% if page.tags %}{% assign tags = page.tags | join: ", " %}{% else %}{% assign tags = false %}{% endif %}

{% assign authors = conf.author | append: ',' | append: conf.contrib | replace: " ","" | split: ',' %} {% if authors %} {% for author in authors %} {% avatar user=author size=30 %} {% endfor %} {% endif %}

{% else %} {% assign ispage = false %} {% assign h1 = "h4" %}{% assign h3 = "h5" %} {% assign title = "#define " | append: conf.name | append: " " | append: conf.type | append: "" %} {% if conf.disabled %}{% assign title = "//" | append: title %}{% endif %} {% if conf.since %}{% assign since = conf.since %} {% elsif parsince %}{% assign since = parsince %} {% else %}{% assign since = false %}{% endif %} {% if conf.tags %}{% assign tags = conf.tags | join: ", " %} {% elsif partags %}{% assign tags = partags | join: ", " %} {% else %}{% assign tags = false %}{% endif %} {%- endif -%}
{%- if since -%}
{{- since }}{% if conf.until %} - {{ conf.until }}{% endif %}
{%- endif -%} <{{ h1 }}{% if conf.disabled %} class="dis"{% endif %}>{{ title }} {% if conf.experimental %} {% endif %}
{% if conf.related %} {% endif %} {% if ispage %} {% if page.content %}<{{ h3 }}>Description{% endif %} {% endif %} {% if conf.brief %}
{{conf.brief | markdownify }}
{% endif %} {% if conf.requires %}
⚠️ Requires: {{ conf.requires }}
{% endif %}
{% if tags %}
{{ tags }}
{% endif %} {% if ispage %} {% if page.content %}{{ page.content | markdownify }}{% endif %} {% else %} {% if conf.long %}{{ conf.long | markdownify }}{% endif %} {% endif %}
{% if conf.options %} {% if conf.options >= 0 and page.shared[conf.options] %} {% assign options = page.shared[conf.options].options %} {% else %} {% assign options = conf.options %} {% endif %} {% else %} {% assign options = false %} {% endif %} {%- if options %}
<{{ h3 }}>Options {% if options[0].value %} 4 %} class="table-striped"{% endif %}> {%- for op in options -%} {{ op.value }}{% if op.brief %}{{ op.brief }}{% endif %} {%- endfor -%} {% else %} {{ options | join: ", " }} {% endif %}
{% endif %} {% if conf.example %}{% assign example = conf.example %} {% elsif conf.examples %}{% assign example = conf.examples %} {% else %}{% assign example = false %}{% endif %} {%- if example %}
<{{ h3 }}>Example{% if example[1] %}s{% endif %} {% for ex in example %} {% if ex.pre %} {% for line in ex.pre %} {{ line | markdownify }} {% endfor %} {% endif %} {% if ex.value or ex.code %} {% highlight cpp %}{% if ex.value %}#define {{ conf.name }} {{ ex.value }}{% if ex.comment %} // {{ ex.comment }}{% endif %}{% endif %} {%- for line in ex.code %}{{ line }}{% endfor %}{% endhighlight %} {% endif %} {% if ex.post %}
{% for line in ex.post %} {{ line | markdownify }} {% endfor %}
{% endif %} {% endfor %}
{% endif %} {% if conf.images %} {% endif %} {% if conf.videos %}
<{{ h3 }}>Related Media {% for videoid in conf.videos %} {% endfor %}
{% endif %} {% if conf.subopts %}{% assign sub = conf.subopts %}{% assign label = "Sub-Options" %} {% elsif conf.settings %}{% assign sub = conf.settings %}{% assign label = "Settings" %} {% else %}{% assign sub = false %}{% endif %} {% if sub %} {% assign thisconf = conf %} {% for conf in sub %} {% if conf contains 'since' %}{% else %}{% assign parsince = thisconf.since %}{% endif %} {% if conf contains 'tags' %}{% else %}{% assign partags = thisconf.tags %}{% endif %}
{% include setting-info.html %}
{% endfor %} {% assign conf = thisconf %} {% endif %}