CI didn't catch this because it only does release builds on MacOS (and Linux which might be affected too, dunno).
Changing the line to atomic_uint32_t num_allocations = 0; fixes compilation on MacOS, but breaks Windows debug msvc builds. I'm guessing this is a C-vs-C++ syntax conflict? Not sure what the idiomatic solution looks like here.
There is no C++ in vkQuake. {0} is just stone age C struct initialization syntax. The fix is just to remove the initialization and replace it with Atomic_StoreUInt32
If you try to make a debug build on MacOS using the command
meson build --buildtype=debug && ninja -C build
, then this error occurs:CI didn't catch this because it only does release builds on MacOS (and Linux which might be affected too, dunno).
Changing the line to
atomic_uint32_t num_allocations = 0;
fixes compilation on MacOS, but breaks Windows debug msvc builds. I'm guessing this is a C-vs-C++ syntax conflict? Not sure what the idiomatic solution looks like here.Desktop: