remove \r
[extl.git] / extl / utility / static_message_assert.h
blobf8cdfb8066d28075421a9b9faaef5c534b53355c
1 /* ///////////////////////////////////////////////////////////////////////
2 * File: static_assert.h
4 * Created: 08.02.02
5 * Updated: 08.05.05
7 * Brief: static assertion
9 * [<Home>]
10 * Copyright (c) 2008-2020, Waruqi All rights reserved.
11 * //////////////////////////////////////////////////////////////////// */
12 #ifndef EXTL_UTILITY_STATIC_MESSAGE_ASSERT_H
13 #define EXTL_UTILITY_STATIC_MESSAGE_ASSERT_H
15 /*!\file static_assert.h
16 * \brief static assertion
19 /* ///////////////////////////////////////////////////////////////////////
20 * Includes
22 #include "static_assert.h"
24 /* ///////////////////////////////////////////////////////////////////////
25 * ::extl namespace
27 EXTL_BEGIN_NAMESPACE
29 /* ///////////////////////////////////////////////////////////////////////
30 * static assertion
32 #ifdef EXTL_0x_STATIC_MESSAGE_ASSERT_SUPPORT // c++0x
33 # define EXTL_STATIC_MESSAGE_ASSERT(expr, msg) static_assert(expr, msg)
34 #else
35 # define EXTL_STATIC_MESSAGE_ASSERT(expr, msg) EXTL_STATIC_ASSERT(expr)
36 #endif
38 /* ///////////////////////////////////////////////////////////////////////
39 * ::extl namespace
41 EXTL_END_NAMESPACE
43 /* //////////////////////////////////////////////////////////////////// */
44 #endif /* EXTL_UTILITY_STATIC_MESSAGE_ASSERT_H */
45 /* //////////////////////////////////////////////////////////////////// */