Skip to content

Fix building with MSVC & reduce the amount of warnings in general#393

Merged
RobLoach merged 3 commits into
RobLoach:masterfrom
penggrin12:fix-msvc-errors
May 10, 2026
Merged

Fix building with MSVC & reduce the amount of warnings in general#393
RobLoach merged 3 commits into
RobLoach:masterfrom
penggrin12:fix-msvc-errors

Conversation

@penggrin12
Copy link
Copy Markdown
Contributor

Builds for me with Rider's default stuff for Visual Studio 2022 tools.

@penggrin12
Copy link
Copy Markdown
Contributor Author

As you can also seems to build fine with gcc/clang. Cant confirm myself though.

@penggrin12
Copy link
Copy Markdown
Contributor Author

(Hopefully) fixes #76 and maybe #336

Comment thread tests/raylib-assert.h
Comment on lines -81 to 83
#define RAYLIB_ASSERT_CAT( A, B ) A ## B
#define RAYLIB_ASSERT_SELECT( NAME, NUM ) RAYLIB_ASSERT_CAT( NAME ## _, NUM )
#define RAYLIB_ASSERT_CAT(a, b) RAYLIB_ASSERT_CAT_I(a, b)
#define RAYLIB_ASSERT_CAT_I(a, b) a##b
#define RAYLIB_ASSERT_SELECT(name, num) RAYLIB_ASSERT_CAT(name##_, num)
#define RAYLIB_ASSERT_GET_COUNT( _1, _2, _3, _4, _5, _6, _7, RAYLIB_ASSERT_COUNT, ... ) RAYLIB_ASSERT_COUNT
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also be changed upstream in raylib-assert

@penggrin12
Copy link
Copy Markdown
Contributor Author

Windows workflows also now build, but i couldn't get them to test.
https://github.com/penggrin12/raylib-cpp/actions/runs/25641657489

Will make a follow up PR for the workflows after this is merged.

@RobLoach RobLoach merged commit 199f993 into RobLoach:master May 10, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants