In tagmanager/src/tm_parser.c:
> + > + > +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");
this one could be a static assertion, would be awesome :)
G_STATIC_ASSERT(G_N_ELEMENTS(parser_map == TM_PARSER_COUNT);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub