conf_debug.c 313 B

12345678910111213141516
  1. #include "putty.h"
  2. #define CONF_OPTION(id, ...) "CONF_" #id,
  3. static const char *const conf_debug_identifiers[] = {
  4. #include "conf.h"
  5. };
  6. const char *conf_id(int key)
  7. {
  8. size_t i = key;
  9. if (i < lenof(conf_debug_identifiers))
  10. return conf_debug_identifiers[i];
  11. return "CONF_!outofrange!";
  12. }