Skip to content

CHECK macros redefinition #64

Closed
Closed
@sinjar666

Description

@sinjar666

CheckMacros.h has a ifdef to check if
CHECK, CHECK_EQUAL, etc have been already defined.
This gives me problems when some code which links to other libraries (like glog) which have a CHECK macro (but with different definition) are being tested.
Namespaces cant help with preprocessor macros.
How can I work around this?

If the check macros made calls to static methods within a class thats in the UnitTest namespace, maybe this can be solved by calling the static methods instead of macros in such cases.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions