FCF 2.0 development in progress...
> > > >
[News] [C++ Libraries API] [C++ Downloads] [Donate to the project] [Contacts]

FCF_TEST_IMPLEMENTATION macro

FCF_TEST_IMPLEMENTATION

Package: fcfTest

File: test.hpp

Available from version: 1.0.1

This macro is used to enable the implementation section within the header file fcfTest/test.hpp.

When this macro is declared, the implementation of functions and methods is declared in the fcfTest/test.hpp file. This macro should be included in only one CPP file for the application that will compile the required functions.

Example:

#define FCF_TEST_IMPLEMENTATION #include <fcfTest/test.hpp> FCF_TEST_DECLARE("OurPart", "OurGroup","OurTest"){ int a = 1; int b = 2; FCF_TEST(a !=b, a, b); } int main(int a_argc, char* a_argv[]){ bool error; fcf::NTest::cmdRun(a_argc, a_argv, fcf::NTest::CRM_RUN, &error); return error ? 1 : 0; }