summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-07-28 19:11:34 +0200
committeraura <nw@moneybot.cc>2026-07-28 19:11:34 +0200
commit86d248ed2b033fe36ce53b0387b2cbdcb69c0b72 (patch)
treea70f32a0f44b927a6d137998efa405e330689c0f /src/util
parent468813b133a6a3ff0b85d3b34f1009cfeae815e4 (diff)
finish undo/redo
Diffstat (limited to 'src/util')
-rw-r--r--src/util/allocator.h1
-rw-r--r--src/util/typedef.h2
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