From 0022a217643dd7119df5dc0fcca41161d3201acc Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 30 Mar 2025 14:23:26 +0200 Subject: Refactor code for registering build_configuration registrations. --- src/ctor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ctor.h') diff --git a/src/ctor.h b/src/ctor.h index 9c6fcf6..27b30af 100644 --- a/src/ctor.h +++ b/src/ctor.h @@ -233,7 +233,7 @@ struct build_configuration using build_configurations = std::vector; -int reg(ctor::build_configurations (*cb)(const ctor::settings&), +int reg(std::function cb, const std::source_location location = std::source_location::current()); // This type will use flags verbatim @@ -252,7 +252,7 @@ struct external_configuration using external_configurations = std::vector; -int reg(ctor::external_configurations (*cb)(const ctor::settings&), +int reg(std::function cb, const std::source_location location = std::source_location::current()); // Convenience macro - ugly but keeps things simple(r) -- cgit v1.2.3