Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning C4002: too many actual parameters for macro 'MxTrace' #1374

Open
disinvite opened this issue Jan 24, 2025 · 0 comments
Open

warning C4002: too many actual parameters for macro 'MxTrace' #1374

disinvite opened this issue Jan 24, 2025 · 0 comments

Comments

@disinvite
Copy link
Collaborator

The MxTrace macro wraps the _MxTrace function so that we don't call it on non-debug builds. Similar to the mechanism in <assert.h>.

Our MSVC doesn't support variable arguments in macros, so we use simple string replacement on the args parameter. We could create separate macros for the number of parameters needed (as in <crtdbg.h>) or just try to suppress this warning.

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

No branches or pull requests

1 participant