(svn r16715) -Codechange: add attribute to assert_compile(), so it doesn't warn when used inside function

This commit is contained in:
smatz
2009-07-01 21:29:03 +00:00
parent 93557ba4e9
commit fe57925910
4 changed files with 10 additions and 11 deletions

View File

@@ -116,12 +116,10 @@ static FORCEINLINE T Align(const T x, uint n)
* @return The smallest multiple of n equal or greater than x
* @see Align()
*/
assert_compile(sizeof(size_t) == sizeof(void *));
template <typename T>
static FORCEINLINE T *AlignPtr(T *x, uint n)
{
assert_compile(sizeof(size_t) == sizeof(void *));
return (T *)Align((size_t)x, n);
}