Adds in assume checking for debug builds
This commit is contained in:
@@ -22,7 +22,13 @@
|
||||
#define FGL_FORCE_INLINE [[gnu::always_inline]]
|
||||
#define FGL_FORCE_INLINE_FLATTEN FGL_FLATTEN FGL_FORCE_INLINE
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define FGL_ASSUME( ... ) \
|
||||
FGL_ASSERT( !( __VA_ARGS__ ) ); \
|
||||
[[gnu::assume( __VA_ARGS__ )]]
|
||||
#else
|
||||
#define FGL_ASSUME( ... ) [[gnu::assume( __VA_ARGS__ )]]
|
||||
#endif
|
||||
|
||||
#define FGL_ALIGN( bytesize ) [[gnu::alligned( bitsize )]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user