diff options
Diffstat (limited to 'src/ctor.h')
-rw-r--r-- | src/ctor.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -73,13 +73,13 @@ struct settings int verbose{0}; // -1: completely silent, 0: normal, 1: verbose, ... }; -struct BuildConfiguration; +struct build_configuration; using GeneratorCb = std::function<int(const std::string& input, const std::string& output, - const BuildConfiguration& config, + const build_configuration& config, const ctor::settings& settings)>; -struct BuildConfiguration +struct build_configuration { std::string name; // Name - used for referring in other configurations. ctor::target_type type{ctor::target_type::automatic}; @@ -92,9 +92,9 @@ struct BuildConfiguration GeneratorCb function; }; -using BuildConfigurations = std::vector<BuildConfiguration>; +using build_configurations = std::vector<build_configuration>; -int reg(BuildConfigurations (*cb)(const ctor::settings&), +int reg(ctor::build_configurations (*cb)(const ctor::settings&), const std::source_location location = std::source_location::current()); // This type will use flags verbatim |