Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Consider using NDEBUG instead of DEBUG, _DEBUG #600

@kuzminrobin

Description

@kuzminrobin

The standard of C and C++ assumes by default that the code is compiled in debug mode (which affects such things as, e.g. assert() macro).
If the developer wants to compile the code in non-debug mode, then the C/C++ standards prescribe to define the NDEBUG macro (search for NDEBUG here).

Consider removing the DEBUG, _DEBUG and similar macros/definitions from our code and using the NDEBUG instead.

Some more info is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceImprove codebase quality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions