Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUPER_FAST_ASSERTS fails to compile CHECK_MESSAGE #281

Closed
tbsmark86 opened this issue Aug 28, 2019 · 2 comments
Closed

SUPER_FAST_ASSERTS fails to compile CHECK_MESSAGE #281

tbsmark86 opened this issue Aug 28, 2019 · 2 comments

Comments

@tbsmark86
Copy link

Version: 2.3.4
It was ok in Version 1.2.9

This does not compile:

  #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
  #define DOCTEST_CONFIG_SUPER_FAST_ASSERTS
  #include "doctest/doctest.h"

   TEST_CASE("simple")
   {
          CHECK_MESSAGE(true == false, "strange");
   }

However when I remove the SUPER_FAST_ASSERTS it does.

Error:
test.c: In function ‘void _DOCTEST_ANON_FUNC_6()’:
doctest/doctest.h:2063:93: error: ‘DT_CHECK’ was not declared in this scope
In file included from test.c:5:0:
doctest/doctest.h:2063:66: error: ‘DOCTEST_ASSERT_IMPLEMENT_2’ was not declared in this scope

I was able to workaround this by simply duplicating the
DOCTEST_ASSERT_IMPLEMENT_1 macro as "_2"

@onqtam
Copy link
Member

onqtam commented Aug 28, 2019

This is a duplicate of this issue: #280

It's fixed in the dev branch and will be made available in the master branch once I release a new official version - not sure when that is happening though... :)

@onqtam onqtam closed this as completed Sep 22, 2019
@onqtam
Copy link
Member

onqtam commented Sep 22, 2019

releasing 2.3.5 where this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants