Fixed.
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 1m33s

This commit is contained in:
Your Name
2025-05-25 19:44:10 +12:00
parent e7558be416
commit 27a2d25fb2
2 changed files with 29 additions and 11 deletions

View File

@ -69,4 +69,10 @@ std::string get_string_from_url(const std::string& url);
// replace or append a block of text to a file, matching first and last lines if replacing.
bool file_replace_or_add_segment(std::string filepath, std::string segment);
constexpr unsigned int switchhash(const char *s, int off = 0)
{
return !s[off] ? 5381 : (switchhash(s, off + 1) * 33) ^ s[off];
}
} // namespace dropshell