Added MIJIN_STRIDEOF() utilty macro.
This commit is contained in:
parent
251393ae48
commit
7aa1edcea0
@ -16,6 +16,7 @@ constexpr T alignUp(T value, T alignTo) noexcept
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define MIJIN_STRIDEOF(T) mijin::alignUp(sizeof(T), alignof(T))
|
||||||
} // namespace mijin
|
} // namespace mijin
|
||||||
|
|
||||||
#endif // !defined(MIJIN_UTIL_ALIGN_HPP_INCLUDED)
|
#endif // !defined(MIJIN_UTIL_ALIGN_HPP_INCLUDED)
|
Loading…
x
Reference in New Issue
Block a user