From 0ffc9c47a469f078e3ee834fbc4767b52b7694d6 Mon Sep 17 00:00:00 2001 From: mat007 Date: Sun, 8 May 2011 17:49:50 +0000 Subject: [PATCH] Cleanup git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@313 860be788-9bd5-4423-9f1e-828f051e677b --- .../Jamfile.v2 | 0 .../{turtle_bench_2 => turtle_bench}/Jamroot | 0 .../turtle_bench_2/turtle_bench.cpp | 31 ------------------- .../turtle_bench_2/turtle_bench.hpp | 17 ---------- 4 files changed, 48 deletions(-) rename src/applications/{turtle_bench_2 => turtle_bench}/Jamfile.v2 (100%) rename src/applications/{turtle_bench_2 => turtle_bench}/Jamroot (100%) delete mode 100644 src/applications/turtle_bench_2/turtle_bench.cpp delete mode 100644 src/applications/turtle_bench_2/turtle_bench.hpp diff --git a/src/applications/turtle_bench_2/Jamfile.v2 b/src/applications/turtle_bench/Jamfile.v2 similarity index 100% rename from src/applications/turtle_bench_2/Jamfile.v2 rename to src/applications/turtle_bench/Jamfile.v2 diff --git a/src/applications/turtle_bench_2/Jamroot b/src/applications/turtle_bench/Jamroot similarity index 100% rename from src/applications/turtle_bench_2/Jamroot rename to src/applications/turtle_bench/Jamroot diff --git a/src/applications/turtle_bench_2/turtle_bench.cpp b/src/applications/turtle_bench_2/turtle_bench.cpp deleted file mode 100644 index 648072c..0000000 --- a/src/applications/turtle_bench_2/turtle_bench.cpp +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright Mathieu Champlon 2010 -// -// Distributed under the Boost Software License, Version 1.0. (See -// accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) -// - -#include -#include - -#define F(z, n, d) virtual void f##n() = 0; - -#define NUMBER_OF_METHODS 20 - -namespace -{ - class base_class - { - public: - virtual ~base_class() {} - BOOST_PP_REPEAT_FROM_TO(0, NUMBER_OF_METHODS, F, ) - }; -} - -#define BOOST_PP_FILENAME_1 "turtle_bench.hpp" -#define BOOST_PP_ITERATION_LIMITS (1, 10) -#include BOOST_PP_ITERATE() - -int main() -{} diff --git a/src/applications/turtle_bench_2/turtle_bench.hpp b/src/applications/turtle_bench_2/turtle_bench.hpp deleted file mode 100644 index 12865d9..0000000 --- a/src/applications/turtle_bench_2/turtle_bench.hpp +++ /dev/null @@ -1,17 +0,0 @@ -// -// Copyright Mathieu Champlon 2010 -// -// Distributed under the Boost Software License, Version 1.0. (See -// accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) -// - -#pragma message( BOOST_PP_STRINGIZE( BOOST_PP_CAT( mock_class, BOOST_PP_ITERATION() ) ) ) - -#define MOCK_F(z, n, d) MOCK_METHOD( f##n, 0 ) -//#define MOCK_F(z, n, d) MOCK_METHOD_ALT( f##n ) - -MOCK_BASE_CLASS( BOOST_PP_CAT( mock_class, BOOST_PP_ITERATION() ), base_class ) -{ - BOOST_PP_REPEAT_FROM_TO(0, NUMBER_OF_METHODS, MOCK_F, ) -};