ebba2819d6
- Split minidump (upload) and exception handling code - Smaller minidumps for faster uploads - Several new build flags (accessible from premake5 with --params) - BitMessage abstractions - Some other things I can't remember.
26 lines
515 B
C++
26 lines
515 B
C++
namespace Utils
|
|
{
|
|
std::string GetMimeType(std::string url);
|
|
std::string ParseChallenge(std::string data);
|
|
void OutputDebugLastError();
|
|
|
|
template <typename T> void Merge(std::vector<T>* target, T* source, size_t length)
|
|
{
|
|
if (source)
|
|
{
|
|
for (size_t i = 0; i < length; ++i)
|
|
{
|
|
target->push_back(source[i]);
|
|
}
|
|
}
|
|
}
|
|
|
|
template <typename T> void Merge(std::vector<T>* target, std::vector<T> source)
|
|
{
|
|
for (auto &entry : source)
|
|
{
|
|
target->push_back(entry);
|
|
}
|
|
}
|
|
}
|