mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 11:00:04 +00:00
Reduces binary size by ~2 KiB and may improve compatibility with oddball systems (e.g. PS2).
20 lines
319 B
C++
20 lines
319 B
C++
#include "utils/logged_fstream.hpp"
|
|
|
|
namespace devilution {
|
|
|
|
const char *LoggedFStream::DirToString(int dir)
|
|
{
|
|
switch (dir) {
|
|
case SEEK_SET:
|
|
return "SEEK_SET";
|
|
case SEEK_END:
|
|
return "SEEK_END";
|
|
case SEEK_CUR:
|
|
return "SEEK_CUR";
|
|
default:
|
|
return "invalid";
|
|
}
|
|
}
|
|
|
|
} // namespace devilution
|