Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
include
rw
_static_assert.h
Go to the documentation of this file.
1
30
#ifndef _RWSTD_RW_STATIC_ASSERT_H_INCLUDED
31
#define _RWSTD_RW_STATIC_ASSERT_H_INCLUDED
32
33
#include <
rw/_defs.h
>
34
35
_RWSTD_NAMESPACE
(
__rw
) {
36
40
template
<
bool
_Cond>
41
struct
__rw_static_assert
42
{
43
};
44
45
template
<
bool
_Cond>
46
struct
__rw_assert_failed;
47
48
template
<>
49
struct
__rw_assert_failed<
true
>
50
{
51
};
52
53
}
// namespace __rw
54
55
#ifndef _RWSTD_NO_STATIC_ASSERT
56
# define _RWSTD_STATIC_ASSERT(Cond,Mesg) static_assert(Cond, Mesg)
57
#else
58
# define _RWSTD_STATIC_ASSERT(Cond,Mesg) \
59
typedef \
60
_RW::__rw_static_assert<sizeof (_RW::__rw_assert_failed<(Cond)>) != 0> \
61
_RWSTD_PASTE(__static_assert,__LINE__)
62
#endif
// _RWSTD_NO_STATIC_ASSERT
63
64
#endif
// _RWSTD_RW_STATIC_ASSERT_H_INCLUDED
_defs.h
_RWSTD_NAMESPACE
#define _RWSTD_NAMESPACE(name)
Definition
_defs.h:567
__rw
Definition
23.deque.iterators.cpp:50
true
#define true
Definition
stdbool.h:25
Generated by
1.9.8