You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The title is pretty self explanatory, but I'm trying to use clay_renderer_raylib.c with C++, and whenever I compile, I get a bunch of errors which read Error C4576 a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
They're all pointing to different lines in clay_render_raylib.c. I'm not sure if I need to define or flag something to stop this from being an issue, but I can't figure it out. I have my project configured to ISO C++ 20, and ISO C17 for C++ and C respectively.
If you need more info, let me know.
The text was updated successfully, but these errors were encountered:
I'm reasonably certain I know what the issue is here. Designated initializer syntax is slightly different between C99 and C++20. In the clay.h file we use the CLAY__INIT macro to solve this:
You can see that there are a number of C99 style designated inits in the raylib renderer that aren't wrapped in CLAY__INIT. It's just a matter of getting those fixed up 🙂
The title is pretty self explanatory, but I'm trying to use clay_renderer_raylib.c with C++, and whenever I compile, I get a bunch of errors which read
Error C4576 a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
They're all pointing to different lines in clay_render_raylib.c. I'm not sure if I need to define or flag something to stop this from being an issue, but I can't figure it out. I have my project configured to
ISO C++ 20
, andISO C17
for C++ and C respectively.If you need more info, let me know.
The text was updated successfully, but these errors were encountered: