Changeset - r24515:f038998948c2
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 8 years ago 2016-09-05 00:15:09
j.g.rennison@gmail.com
Codechange: Unconditionally use static_assert

We're well past having to support non-C++11 compliant compilers now.
1 file changed with 1 insertions and 9 deletions:
0 comments (0 inline, 0 general)
src/stdafx.h
Show inline comments
 
@@ -348,15 +348,7 @@ typedef unsigned char byte;
 
#	define PERSONAL_DIR ""
 
#endif
 

	
 
/* Compile time assertions. Prefer c++0x static_assert(). */
 
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600)
 
#	define assert_compile(expr) static_assert(expr, #expr )
 
#elif defined(__OS2__)
 
	/* Disabled for OS/2 */
 
#	define assert_compile(expr)
 
#else
 
#	define assert_compile(expr) typedef int __ct_assert__[1 - 2 * !(expr)]
 
#endif
 
#define assert_compile(expr) static_assert(expr, #expr)
 

	
 
/* Check if the types have the bitsizes like we are using them */
 
assert_compile(sizeof(uint64) == 8);
0 comments (0 inline, 0 general)