From 8b34c630e2389df2b8892c7b3c52b8056ae5f8a1 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Thu, 25 Jan 2024 13:41:06 +0100 Subject: Fix bug when no profiling active --- src/profiling.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/profiling.c b/src/profiling.c index 44e12fd..713e2b3 100644 --- a/src/profiling.c +++ b/src/profiling.c @@ -142,9 +142,7 @@ u8 prof_detail_level = 2; #define FRAME_START() do { \ profile_start();\ } while(0) -#define FRAME_END() do { \ - frame_time = profile_stop();\ -} while(0) +#define FRAME_END() #define PROF_SHOW() #define PROF_DETAIL(N) #endif -- cgit v1.2.1