From 55cd09aa6732fb2e6cd123bd81993351e34cb4d1 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 29 May 2002 18:57:18 +0000 Subject: [PATCH] Make PROF_STR really work. --- lib/profile.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/profile.h b/lib/profile.h index 1332d21e..7d8d1312 100644 --- a/lib/profile.h +++ b/lib/profile.h @@ -120,7 +120,7 @@ typedef struct prof_ktsc prof_t; static inline void prof_start(prof_t *c) { prof_switch(NULL, c); } static inline void prof_stop(prof_t *c) { prof_switch(c, NULL); } #endif -#define PROF_STR(c) ({ static byte _x[PROF_STR_SIZE]; prof_format(_x, &(C)); _x }) +#define PROF_STR(C) ({ static byte _x[PROF_STR_SIZE]; prof_format(_x, &(C)); _x; }) #else @@ -132,5 +132,6 @@ static inline void prof_stop(prof_t *c UNUSED) { } static inline void prof_switch(prof_t *c UNUSED, prof_t *d UNUSED) { } static inline void prof_format(char *b, prof_t *c UNUSED) { b[0]='?'; b[1]=0; } #define PROF_STR_SIZE 2 +#define PROF_STR(C) "?" #endif -- 2.39.2