summaryrefslogtreecommitdiff
path: root/src/assert.hh
diff options
context:
space:
mode:
authorColeman McFarland <43583445+dontlaugh@users.noreply.github.com>2025-02-04 14:56:41 -0500
committerGitHub <noreply@github.com>2025-02-04 14:56:41 -0500
commit3df30b663f3bac3851955e367f6d35ebe85d96aa (patch)
treeaa0fbe6ab9983ed429f281ea8ba939252618e9af /src/assert.hh
parentf4439053787208bac2336ce999baa2afc7a0a2cb (diff)
Change kak_expect_throw macro to use alignof
Diffstat (limited to 'src/assert.hh')
-rw-r--r--src/assert.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assert.hh b/src/assert.hh
index 3bbb45d0..f60f31a0 100644
--- a/src/assert.hh
+++ b/src/assert.hh
@@ -31,7 +31,7 @@ void on_assert_failed(const char* message);
} catch (exception_type &err) {}
#else
#define kak_assert(...) do { (void)alignof(decltype(__VA_ARGS__)); } while(false)
- #define kak_expect_throw(_, ...) do { (void)sizeof(__VA_ARGS__); } while(false)
+ #define kak_expect_throw(_, ...) do { (void)alignof(decltype(__VA_ARGS__)); } while(false)
#endif