Skip to content

Commit

Permalink
Deprecated defs.hpp in favour of autodetect.hpp or generic.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloambrosio committed Mar 13, 2016
1 parent 22c427a commit cae0f25
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/cucumber-cpp/autodetect.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "internal/defs.hpp"
#ifndef STEP_INHERITANCE
#error No test framework found: please include a testing framework before autodetect.hpp or include defs.hpp
#error No test framework found: please include a testing framework before autodetect.hpp or include generic.hpp
#endif
1 change: 1 addition & 0 deletions include/cucumber-cpp/defs.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#warning Use of defs.hpp is deprecated, please use either autodetect.hpp or generic.hpp
#include "internal/defs.hpp"
#ifndef STEP_INHERITANCE
#include "internal/drivers/GenericDriver.hpp"
Expand Down
6 changes: 6 additions & 0 deletions include/cucumber-cpp/generic.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "internal/defs.hpp"
#ifdef STEP_INHERITANCE
#error Test framework found: please include autodetect.hpp or remove the test framework includes
#else
#include "internal/drivers/GenericDriver.hpp"
#endif
2 changes: 1 addition & 1 deletion tests/integration/drivers/GenericDriverTest.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <cucumber-cpp/defs.hpp>
#include <cucumber-cpp/generic.hpp>

#include "../../utils/DriverTestRunner.hpp"

Expand Down

0 comments on commit cae0f25

Please sign in to comment.