forked from Return-To-The-Roots/s25client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpp.hint
19 lines (17 loc) · 1.01 KB
/
cpp.hint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2005 - 2021 Settlers Freaks <sf-team at siedler25.org>
//
// SPDX-License-Identifier: BSL-1.0
#define BOOST_AUTO_TEST_CASE(name) class name: public BOOST_AUTO_TEST_CASE_FIXTURE{ void testMethod(); }; void name::testMethod()
#define BOOST_FIXTURE_TEST_CASE(name, fixture) class name: public fixture, public BOOST_AUTO_TEST_CASE_FIXTURE{ void testMethod(); }; void name::testMethod()
#define BOOST_AUTO_TEST_SUITE(name) namespace name{
#define BOOST_FIXTURE_TEST_SUITE(name, fixture) namespace name{ typedef F BOOST_AUTO_TEST_CASE_FIXTURE;
#define BOOST_AUTO_TEST_SUITE_END() }
#define BOOST_REQUIRE(cond) if(!(cond)) assert(false)
#define BOOST_TEST(cond) BOOST_REQUIRE(cond)
#define BOOST_TEST_REQUIRE(cond) BOOST_REQUIRE(cond)
#define BOOST_REQUIRE_EQUAL(x,y) BOOST_REQUIRE((x) == (y))
#define BOOST_REQUIRE_LT(x,y) BOOST_REQUIRE((x) < (y))
#define BOOST_REQUIRE_GT(x,y) BOOST_REQUIRE((x) > (y))
#define RTTR_FOREACH_PT(PtType, size) for(PtType pt;;)
#define SUPPRESS_UNUSED
#define RTTR_Assert(cond) assert(cond)