diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-06 13:51:02 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-06 13:51:02 -0400 |
commit | a4a50055dc52c86cab350561d2cb62a284b5ece5 (patch) | |
tree | c119c5c52b0296b7b4cdb902099cb0b8ca9925b6 /config.h | |
parent | a27bd3293a00e2a00fedfda5bffedb03a87f591b (diff) |
Moved `TYPE_NONE` to the start of `config_type`, and
added `TYPE_COUNT` at the end of `config_type`.
This is to allow for any iterators that need to count
upto the total number of types to just to count up to
`TYPE_COUNT`.
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,11 +7,12 @@ typedef enum config_type config_type; typedef void (*config_func)(config_opt *, config_val); enum config_type { + TYPE_NONE, TYPE_INT, TYPE_STRING, TYPE_FLOAT, TYPE_BOOL, - TYPE_NONE, + TYPE_COUNT, }; struct config_opt { |