Skip to content

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

@disinvite

Description

@disinvite

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions