diff options
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/allocator.h | 1 | ||||
| -rw-r--r-- | src/util/typedef.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/util/allocator.h b/src/util/allocator.h index 3cee282..63fc94a 100644 --- a/src/util/allocator.h +++ b/src/util/allocator.h @@ -206,6 +206,7 @@ struct LIST { return &data[size - 1]; } + // does not call copy funcs or constructors template < typename ... IT > void emplace( const T& item, IT&& ... items ) { constexpr U32 nsize = sizeof...( IT ) + 1; diff --git a/src/util/typedef.h b/src/util/typedef.h index 4a28624..fb26b0e 100644 --- a/src/util/typedef.h +++ b/src/util/typedef.h @@ -57,6 +57,6 @@ __defer_t<T> __defer_func( T f ) { #define dlog( ... ) (void)printf( __VA_ARGS__ ) #define ddef( x ) x #else -#define dlog( ... ) {} +#define dlog( ... ) (void)0 #define ddef( x ) #endif |
