The comfy config file parser library.
Comfyg is a single-file, header-only library for loading configruation parameters from a file. It's fast, light-weight, and very easy to extend.
Please see the accompanied config.conf file for parameter syntax.
#define COMFYG_IMPLEMENTATION
#include "comfyg.hpp"
#include <iostream>
int main()
{
const char** stringOption = Comfyg::config_str("string_option", {});
bool* boolOption = Comfyg::config_bool("boolean option", {});
int* intOption = Comfyg::config_int("intOption", {});
double* doubleOption = Comfyg::config_double("DoubleOption", {});
Comfyg::load_config_file("config.conf");
std::cout << *stringOption << '\n';
std::cout << *boolOption << '\n';
std::cout << *intOption << '\n';
std::cout << *doubleOption << '\n';
return 0;
}