mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-06-19 09:10:52 +00:00
fix not memsetting in release mode (yikes)
This commit is contained in:
@@ -12,8 +12,9 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
// ZeroMemory is just a {0} or a memset(addr, 0, len), and it's a macro on MSVC
|
// ZeroMemory is just a {0} or a memset(addr, 0, len), and it's a macro on MSVC
|
||||||
inline void ZeroMemory(void* dst, size_t len) {
|
inline void ZeroMemory([[maybe_unused]] void* dst, [[maybe_unused]] size_t len) {
|
||||||
Assert(std::memset(dst, 0, len) != nullptr);
|
auto res = std::memset(dst, 0, len);
|
||||||
|
Assert(res != nullptr);
|
||||||
}
|
}
|
||||||
// provides unix equivalent of closesocket call in win32
|
// provides unix equivalent of closesocket call in win32
|
||||||
inline void CloseSocketProper(int socket) {
|
inline void CloseSocketProper(int socket) {
|
||||||
|
|||||||
Reference in New Issue
Block a user