devilutionX/Source/utils/sdl_thread.cpp
Gleb Mazovetskiy 7e1fea6f76 clang-format all files in {Source,test}/
Also includes a few manual tweaks to comments and newlines for better results.

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
2021-11-24 23:44:12 +01:00

20 lines
315 B
C++

#include "utils/sdl_thread.h"
namespace devilution {
int SDLCALL SdlThread::ThreadTranslate(void *ptr)
{
auto handler = (void (*)())ptr;
handler();
return 0;
}
void SdlThread::ThreadDeleter(SDL_Thread *thread)
{
if (thread != nullptr)
app_fatal("Joinable thread destroyed");
}
} // namespace devilution