updated build system
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
2024-10-19 11:10:36 -05:00
parent c72dec6369
commit 2fb53e34af
24 changed files with 1330 additions and 831 deletions

View File

@@ -24,6 +24,7 @@
#include "utils/windows.hpp"
#include "utils/com_init_wrapper.hpp"
#include "utils/error.hpp"
#include "utils/string.hpp"
namespace repertory::utils {
@@ -56,13 +57,13 @@ void create_console() {
std::wcin.clear();
}
void free_console() {
::FreeConsole();
}
void free_console() { ::FreeConsole(); }
auto get_last_error_code() -> DWORD { return ::GetLastError(); }
auto get_local_app_data_directory() -> const std::string & {
REPERTORY_USES_FUNCTION_NAME();
static std::string app_data = ([]() -> std::string {
com_init_wrapper cw;
PWSTR local_app_data{};
@@ -73,7 +74,10 @@ auto get_local_app_data_directory() -> const std::string & {
return ret;
}
throw std::runtime_error("unable to detect local application data folder");
throw utils::error::create_exception({
function_name,
"unable to detect local application data folder",
});
})();
return app_data;