I've been coding in C/C++ for a while and I'm using the https://github.com/jarro2783/cxxopts library. The library uses the add_options() function to grab it's configuration, like this:
options.add_options() ("option1", "Description1") ("option2", "Description2");
And you can add an arbitrary number of options.
It came as a surprise that this is valid C/C++ and works; I have never seen something like that.
How are they doing it? Is there a name for this syntax?