Skip to content

#ifdef logic has unnecessary true and false values #8

@decodeais

Description

@decodeais

I am so happy that tis project is alive again, but I found a little thing what confused me a little:

n the current example code, #ifdef directives are used with definitions like #define XXXX true/false. However, the true and false values are unnecessary because the preprocessor does not evaluate these as boolean expressions. It only checks whether a macro is defined or not.

This can lead to confusion, as the actual values true or false have no effect. For better clarity and maintainability, these definitions should be simplified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions