summaryrefslogtreecommitdiff
path: root/src/rebuild.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebuild.cc')
-rw-r--r--src/rebuild.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rebuild.cc b/src/rebuild.cc
index 7155984..c40a18c 100644
--- a/src/rebuild.cc
+++ b/src/rebuild.cc
@@ -17,9 +17,12 @@
#include "tools.h"
#include "util.h"
+using namespace ctor;
+
std::array<BuildConfigurationEntry, 1024> configFiles;
std::size_t numConfigFiles{0};
+namespace ctor {
int reg(BuildConfigurations (*cb)(const Settings&),
const std::source_location location)
{
@@ -47,6 +50,7 @@ int reg(BuildConfigurations (*cb)(const Settings&),
return 0;
}
+} // namespace ctor::
int reg(const char* location)
{
@@ -109,6 +113,7 @@ int unreg(const char* location)
std::array<ExternalConfigurationEntry, 1024> externalConfigFiles;
std::size_t numExternalConfigFiles{0};
+namespace ctor {
int reg(ExternalConfigurations (*cb)(const Settings&),
const std::source_location location)
{
@@ -126,6 +131,7 @@ int reg(ExternalConfigurations (*cb)(const Settings&),
return 0;
}
+} // namespace ctor::
namespace
{