Browse Source

Update transformer macro

Use appropriate name for null transformer.
master
TheoryOfNekomata 1 year ago
parent
commit
482c2faf41
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      ini-config.h

+ 4
- 4
ini-config.h View File

@@ -10,7 +10,7 @@
typedef struct {
void* serialize;
void* deserialize;
} INI_ConfigSerializerPair;
} INI_ConfigTransformer;

struct INI_ConfigItem;

@@ -38,7 +38,7 @@ typedef struct INI_ConfigItem {
const char* cmdline_option;
const void* default_value;
void* validator;
INI_ConfigSerializerPair transformer;
INI_ConfigTransformer transformer;
void* dest;
} INI_ConfigItem;

@@ -131,7 +131,7 @@ void INI_ConfigOverrideString(INI_ConfigItem*, uint8_t, const char*[]);
.override = INI_ConfigOverrideString, \
}

#define INI_CONFIG_SERIALIZER_PAIR_NONE (INI_ConfigSerializerPair) { \
#define INI_CONFIG_TRANSFORMER_NONE (INI_ConfigTransformer) { \
.serialize = NULL, \
.deserialize = NULL, \
}
@@ -148,7 +148,7 @@ void INI_ConfigOverrideString(INI_ConfigItem*, uint8_t, const char*[]);
NULL, \
NULL, \
NULL, \
INI_CONFIG_SERIALIZER_PAIR_NONE, \
INI_CONFIG_TRANSFORMER_NONE, \
NULL, \
}



Loading…
Cancel
Save