From 6ae7e24675cff4ff6b808c3024f45083f35ced97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 3 Sep 2022 15:28:56 +0200 Subject: Improve error handling. --- c/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/debug.h') diff --git a/c/debug.h b/c/debug.h index e9cefa3..9a201a7 100644 --- a/c/debug.h +++ b/c/debug.h @@ -13,7 +13,7 @@ struct Benchmark ~Benchmark(); /* Don't print time on destruction. */ - void Disable(); + void Disable() noexcept; long long ticks; bool disabled = false; @@ -23,6 +23,6 @@ struct Benchmark }; /* Return name of given window message (WM_*). */ -const char* WmName(UINT uMsg); +const char* WmName(UINT uMsg) noexcept; #endif -- cgit v1.2.3