<p>In <a href="https://github.com/geany/geany/pull/957#discussion_r61949611">tagmanager/src/tm_parser.c</a>:</p>
<pre style='color:#555'>> +
> +
> +void tm_parser_verify_type_mappings(void)
> +{
> +  gsize parser_map_size = sizeof(parser_map) / sizeof(TMParserMap);
> +  TMParserType lang;
> +
> +  if (TM_PARSER_COUNT > tm_ctags_get_lang_count())
> +  {
> +          g_warning("More parsers defined in Geany than in ctags");
> +          return;
> +  }
> +
> +  if (parser_map_size != TM_PARSER_COUNT)
> +  {
> +          g_warning("Different number of parsers and tag type mappings");
</pre>
<p>this one could be a static assertion, would be awesome :)</p>

<div class="highlight highlight-source-c"><pre><span class="pl-en">G_STATIC_ASSERT</span>(G_N_ELEMENTS(parser_map == TM_PARSER_COUNT);</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/pull/957/files/aea7d7845917843dd6b02e5a8dc9031cabc87a86..5d9376ea801a6e6c3ec22748741362a3a2eff7ac#r61949611">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-h35hXAVRhaPhMtwdCFrjCuSqBbks5p969sgaJpZM4Ht-Ad.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/957/files/aea7d7845917843dd6b02e5a8dc9031cabc87a86..5d9376ea801a6e6c3ec22748741362a3a2eff7ac#r61949611"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>