#include <config.hpp>
Definition at line 12 of file config.hpp.
◆ begin()
| const char ** CaDiCaL::Config::begin |
( |
| ) |
|
|
static |
◆ end()
| const char ** CaDiCaL::Config::end |
( |
| ) |
|
|
static |
◆ has()
| bool CaDiCaL::Config::has |
( |
const char * | name | ) |
|
|
static |
Definition at line 57 of file cadical_config.cpp.
57 {
58#define CONFIG(N, D) \
59 if (!strcmp (name, #N)) \
60 return true;
62#undef CONFIG
63 return false;
64}
◆ set()
Definition at line 66 of file cadical_config.cpp.
66 {
68 opts.reset_default_values ();
69 return true;
70 }
72 opts.disable_preprocessing ();
73 return true;
74 }
75#define CONFIG(N, D) \
76 do { \
77 if (strcmp (name, #N)) \
78 break; \
79 const NameVal *BEGIN = N##_config; \
80 const NameVal *END = BEGIN + sizeof N##_config / sizeof (NameVal); \
81 for (const NameVal *P = BEGIN; P != END; P++) { \
82 CADICAL_assert (Options::has (P->name)); \
83 opts.set (P->name, P->val); \
84 } \
85 return true; \
86 } while (0);
88#undef CONFIG
89 return false;
90}
◆ usage()
| void CaDiCaL::Config::usage |
( |
| ) |
|
|
static |
Definition at line 94 of file cadical_config.cpp.
94 {
95#define CONFIG(N, D) printf (" %-14s " D "\n", "--" #N);
97#undef CONFIG
98}
The documentation for this struct was generated from the following files: