Skip to content

UNITTEST_ENABLE_SHORT_MACROS 0 #177

Description

@vanlankveldthijs

In several places, preprocessor definition checks mention "#error [X] already defined, re-configure with UNITTEST_ENABLE_SHORT_MACROS set to 0 and use UNITTEST_[X] instead".

It seems like this refers to some earlier implementation and UNITTEST_DISABLE_SHORT_MACROS should be defined in UnitTest++/Config.h instead.

However, enabling this definition in the config file breaks basically all the tests (in the tests/ directory).

This is also easily circumvented by telling CMake to not include the tests in the makefile.
However, I would expect that changing the configuration settings according to its own explanation should not result in build failures. Otherwise, I would expect a mention of this limitation in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions