mas-bandwidth / yojimbo

A network library for client/server games written in C++
BSD 3-Clause "New" or "Revised" License
2.45k stars 238 forks source link

Problem with #if in yojimbo_reliable_ordered_channel.cpp #195

Closed Hjaltesorgenfrei closed 8 months ago

Hjaltesorgenfrei commented 8 months ago

When compiling with MSVC i get an error in yojimbo_reliable_ordered_channel.cpp(267,19): error C1017: invalid integer constant expression. I think this is due to MSVC not support using #if to check for checking if #defines exists. So ifdef would have to be used instead or YOJIMBO_DEBUG would need to be assigned a value.

Compiler Version: Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33133 for x86 Targeting C++23

gafferongames commented 8 months ago

OK I see the issue. I will make a small commit to fix this shortly. -- cheers

gafferongames commented 8 months ago

Fixed.