1 |
|
2 |
#ifndef CPPUNITTEST_NAMESPACE_H |
3 |
#define CPPUNITTEST_NAMESPACE_H |
4 |
# |
5 |
// |
6 |
// Assume all compilers support namespaces. Easy to redefine the defines |
7 |
// if needed to support compilers that don't support namespaces. |
8 |
// |
9 |
#define COMPILER_SUPPORTS_NAMESPACES |
10 |
|
11 |
#if defined COMPILER_SUPPORTS_NAMESPACES |
12 |
# define BEGIN_NAMESPACE_CPPUNITTEST namespace CppUnitTest { |
13 |
# define END_NAMESPACE_CPPUNITTEST } |
14 |
# define USING_NAMESPACE_CPPUNITTEST using namespace CppUnitTest ; |
15 |
|
16 |
#else |
17 |
// |
18 |
// Empty defines for pre-namespace compilers. |
19 |
// |
20 |
# define BEGIN_NAMESPACE_CPPUNITTEST |
21 |
# define END_NAMESPACE_CPPUNITTEST |
22 |
# define USING_NAMESPACE_CPPUNITTEST |
23 |
|
24 |
# endif |
25 |
|
26 |
#endif |
27 |
|