diff options
| author | J08nY | 2017-09-29 18:13:08 +0200 |
|---|---|---|
| committer | J08nY | 2017-09-29 18:13:08 +0200 |
| commit | 392b41421af7f54fae009dee0fdac5659a248256 (patch) | |
| tree | 5b52489f064f43e031dc27ceef7b2457eb3c4a11 /src/misc | |
| parent | 12443b052474d3e25c7e335743a6ee036e9a8752 (diff) | |
| download | ecgen-392b41421af7f54fae009dee0fdac5659a248256.tar.gz ecgen-392b41421af7f54fae009dee0fdac5659a248256.tar.zst ecgen-392b41421af7f54fae009dee0fdac5659a248256.zip | |
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/types.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/misc/types.h b/src/misc/types.h index 77ee903..e80789f 100644 --- a/src/misc/types.h +++ b/src/misc/types.h @@ -141,14 +141,21 @@ typedef UNROLL((*unroll_f)); * @brief A check function type. * @param curve A curve_t being checked * @param cfg An application config - * @param args Current optional check argument * @return state diff */ -#define CHECK(check_name) GENERATOR(check_name) +#define CHECK(check_name) int check_name(curve_t *curve, const config_t *cfg) typedef CHECK((*check_f)); /** + * @brief + */ +typedef struct { + check_f *checks; + size_t nchecks; +} check_t; + +/** * GENERATOR(gen_f) * * @param curve A curve_t being generated |
