mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
eol_size()
This commit is contained in:
parent
94513be061
commit
0b2bd0fc73
@ -55,6 +55,15 @@ constexpr inline const char* eol()
|
|||||||
return "\n";
|
return "\n";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr inline unsigned short eol_size()
|
||||||
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
|
return 2;
|
||||||
|
#else
|
||||||
|
return 1;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
} //os
|
} //os
|
||||||
} //details
|
} //details
|
||||||
} //c11log
|
} //c11log
|
||||||
|
Loading…
Reference in New Issue
Block a user