1 /* 2 * Created by Phil on 10/2/2014. 3 * Copyright 2014 Two Blue Cubes Ltd. All rights reserved. 4 * 5 * Distributed under the Boost Software License, Version 1.0. (See accompanying 6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 7 * 8 */ 9 #ifndef TWOBLUECUBES_CATCH_CLARA_H_INCLUDED 10 #define TWOBLUECUBES_CATCH_CLARA_H_INCLUDED 11 12 // Use Catch's value for console width (store Clara's off to the side, if present) 13 #ifdef CLARA_CONFIG_CONSOLE_WIDTH 14 #define CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH CLARA_CONFIG_CONSOLE_WIDTH 15 #undef CLARA_CONFIG_CONSOLE_WIDTH 16 #endif 17 #define CLARA_CONFIG_CONSOLE_WIDTH CATCH_CONFIG_CONSOLE_WIDTH 18 19 20 // Declare Clara inside the Catch namespace 21 #define STITCH_CLARA_OPEN_NAMESPACE namespace Catch { 22 #include "../external/clara.h" 23 #undef STITCH_CLARA_OPEN_NAMESPACE 24 25 26 // Restore Clara's value for console width, if present 27 #ifdef CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH 28 #define CLARA_CONFIG_CONSOLE_WIDTH CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH 29 #undef CATCH_TEMP_CLARA_CONFIG_CONSOLE_WIDTH 30 #endif 31 32 #endif // TWOBLUECUBES_CATCH_CLARA_H_INCLUDED 33