Skip to content

Commit 41ca45e

Browse files
committed
fix: use the macro ASSERT in web_client.cpp
use it, so that in release mode every used variable is declared as unused and the compilation doesn't fail because of that
1 parent 36100cc commit 41ca45e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lobby/web_client.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
#include "./web_client.hpp"
33

4+
#include <core/helper/utils.hpp>
45
#include <core/helper/magic_enum_wrapper.hpp>
56

67
// Note: this uses emscripten fetch
@@ -150,7 +151,7 @@ namespace {
150151
emscripten_fetch_attr_t attr{};
151152
emscripten_fetch_attr_init(&attr);
152153

153-
assert(method.size() <= (max_method_size - 1));
154+
ASSERT(method.size() <= (max_method_size - 1));
154155
std::memcpy(attr.requestMethod, method.c_str(), method.size() + 1);
155156

156157
//TODO(Totto): once the http Implementation "Interface" support async thing, use that:

0 commit comments

Comments
 (0)