From 86d248ed2b033fe36ce53b0387b2cbdcb69c0b72 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 28 Jul 2026 19:11:34 +0200 Subject: finish undo/redo --- src/util/allocator.h | 1 + src/util/typedef.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util') 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 __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 -- cgit v1.2.3